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:
Dawid Bepierszcz
2025-05-21 13:11:01 +02:00
parent 676a18d9b4
commit f654d6b085
5 changed files with 64 additions and 45 deletions

View File

@@ -386,6 +386,16 @@ public partial class CS2_SimpleAdmin
command.ReplyToCommand("Reloaded sql admins and groups");
}
[CommandHelper(whoCanExecute: CommandUsage.CLIENT_AND_SERVER)]
[RequiresPermissions("@css/root")]
public void OnRelBans(CCSPlayerController? caller, CommandInfo command)
{
if (Database == null) return;
_ = Instance.CacheManager.ForceReInitializeCacheAsync();
command.ReplyToCommand("Reloaded bans");
}
public void ReloadAdmins(CCSPlayerController? caller)
{