- 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

@@ -534,6 +534,7 @@ namespace CS2_SimpleAdmin
public void Kick(CCSPlayerController? caller, CCSPlayerController? player, string? reason = "Unknown", string? callerName = null, CommandInfo? command = null)
{
if (player == null || !player.IsValid) return;
if (!caller.CanTarget(player)) return;
callerName ??= caller == null ? "Console" : caller.PlayerName;
reason ??= _localizer?["sa_unknown"] ?? "Unknown";