mirror of
https://github.com/daffyyyy/CS2-SimpleAdmin.git
synced 2026-02-18 10:43:23 +00:00
Fixed client commands in custom commands
This commit is contained in:
@@ -37,7 +37,7 @@ namespace CS2_SimpleAdmin.Menus
|
|||||||
Helper.TryLogCommandOnDiscord(admin, customCommand.Command);
|
Helper.TryLogCommandOnDiscord(admin, customCommand.Command);
|
||||||
|
|
||||||
if (customCommand.ExecuteOnClient)
|
if (customCommand.ExecuteOnClient)
|
||||||
admin.ExecuteClientCommand(customCommand.Command);
|
admin.ExecuteClientCommandFromServer(customCommand.Command);
|
||||||
else
|
else
|
||||||
Server.ExecuteCommand(customCommand.Command);
|
Server.ExecuteCommand(customCommand.Command);
|
||||||
}));
|
}));
|
||||||
|
|||||||
Reference in New Issue
Block a user