mirror of
https://github.com/daffyyyy/CS2-SimpleAdmin.git
synced 2026-02-17 18:39:07 +00:00
Fixed perm ban issue with console
This commit is contained in:
@@ -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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user