Fixed client commands in custom commands

This commit is contained in:
Valentin Barat
2024-04-14 19:36:28 +02:00
parent 39404e52ac
commit 90556e66b2

View File

@@ -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);
})); }));