- Fixed immunity in menu
- Added new command `css_prename` to  perm rename player (until the server restarts - don't set new name to remove perm rename) // @css/ban)
This commit is contained in:
Dawid Bepierszcz
2024-07-03 22:59:26 +02:00
parent 6cf6b1c919
commit bcbcb83a35
10 changed files with 124 additions and 10 deletions

View File

@@ -51,6 +51,8 @@ namespace CS2_SimpleAdmin
internal void Ban(CCSPlayerController? caller, CCSPlayerController? player, int time, string reason, string? callerName = null, BanManager? banManager = null, CommandInfo? command = null)
{
if (_database == null || player is null || !player.IsValid) return;
if (!caller.CanTarget(player)) return;
if (CheckValidBan(caller, time) == false)
return;