1.7.7-alpha-small-optimizations

- Clear bans cache on plugin reload
- Changed ip history to int
This commit is contained in:
Dawid Bepierszcz 2025-05-23 03:28:10 +02:00
parent f654d6b085
commit 3ab63c05db
11 changed files with 284 additions and 169 deletions

View file

@ -31,6 +31,8 @@ public partial class CS2_SimpleAdmin : BasePlugin, IPluginConfig<CS2_SimpleAdmin
{
ServerLoaded = false;
_serverLoading = false;
CacheManager = new CacheManager();
OnGameServerSteamAPIActivated();
OnMapStart(string.Empty);
@ -149,4 +151,10 @@ public partial class CS2_SimpleAdmin : BasePlugin, IPluginConfig<CS2_SimpleAdmin
command.ReplyToCommand($"Multiple targets found for \"{command.GetArg(1)}\".");
return null;
}
public override void Unload(bool hotReload)
{
CacheManager?.Dispose();
CacheManager = null;
}
}