mirror of
https://github.com/daffyyyy/CS2-SimpleAdmin.git
synced 2026-02-26 13:07:40 +00: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:
@@ -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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user