Fixed perm ban issue with console

This commit is contained in:
Valentin Barat
2024-04-29 10:27:52 +02:00
parent 13ab223c86
commit 7efa2cdad3

View File

@@ -375,7 +375,7 @@ namespace CS2_SimpleAdmin
{
bool validCaller = caller != null && caller.IsValid;
bool canPermBan = validCaller && AdminManager.PlayerHasPermissions(caller, "@css/permban");
bool canPermBan = caller == null || validCaller && AdminManager.PlayerHasPermissions(caller, "@css/permban");
if (duration > Config.MaxBanDuration && canPermBan == false)
{