added client only of css_admin

This commit is contained in:
Valentin Barat
2024-02-12 23:37:55 +01:00
parent 1882b14657
commit 74852f0651

View File

@@ -47,6 +47,7 @@ namespace CS2_SimpleAdmin
[ConsoleCommand("css_admin")]
[RequiresPermissions("@css/generic")]
[CommandHelper(minArgs: 0, usage: "", whoCanExecute: CommandUsage.CLIENT_ONLY)]
public void OnAdminCommand(CCSPlayerController? caller, CommandInfo command)
{
if (caller == null || caller.IsValid == false)