mirror of
https://github.com/daffyyyy/CS2-SimpleAdmin.git
synced 2026-09-27 20:17:04 +02:00
1.7.7-alpha-connection-fix
- Fixed lag when player connecting - Added command to force refresh ban cache (css_reloadbans)
This commit is contained in:
parent
676a18d9b4
commit
f654d6b085
5 changed files with 64 additions and 45 deletions
|
|
@ -40,10 +40,10 @@ public partial class CS2_SimpleAdmin : BasePlugin, IPluginConfig<CS2_SimpleAdmin
|
|||
|
||||
var playerManager = new PlayerManager();
|
||||
|
||||
Parallel.ForEach(Helper.GetValidPlayers(), player =>
|
||||
foreach (var player in Helper.GetValidPlayers())
|
||||
{
|
||||
playerManager.LoadPlayerData(player);
|
||||
});
|
||||
};
|
||||
});
|
||||
}
|
||||
_cBasePlayerControllerSetPawnFunc = new MemoryFunctionVoid<CBasePlayerController, CCSPlayerPawn, bool, bool>(GameData.GetSignature("CBasePlayerController_SetPawn"));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue