Fixed map permission

This commit is contained in:
daffyyyy
2023-12-03 01:23:46 +01:00
parent d496977c76
commit 53812148b3
2 changed files with 2 additions and 2 deletions

View File

@@ -202,7 +202,7 @@ public partial class CS2_SimpleAdmin : BasePlugin, IPluginConfig<CS2_SimpleAdmin
} }
[ConsoleCommand("css_map")] [ConsoleCommand("css_map")]
[RequiresPermissions("@css/map")] [RequiresPermissions("@css/changemap")]
[CommandHelper(minArgs: 1, usage: "<mapname>", whoCanExecute: CommandUsage.CLIENT_AND_SERVER)] [CommandHelper(minArgs: 1, usage: "<mapname>", whoCanExecute: CommandUsage.CLIENT_AND_SERVER)]
public void OnMapCommand(CCSPlayerController? caller, CommandInfo command) public void OnMapCommand(CCSPlayerController? caller, CommandInfo command)
{ {

View File

@@ -12,7 +12,7 @@ It's only plugin base, I don't have much time for more extensive development, so
- css_kick <#userid or name> [reason] - Kick player / @css/kick - css_kick <#userid or name> [reason] - Kick player / @css/kick
- css_slay <#userid or name> - Kill player // @css/slay - css_slay <#userid or name> - Kill player // @css/slay
- css_slap <#userid or name> [damage] - Slap player // @css/slay - css_slap <#userid or name> [damage] - Slap player // @css/slay
- css_map <mapname> - Change map // @css/map - css_map <mapname> - Change map // @css/changemap
- css_say <message> - Say message as admin in chat // @css/chat - css_say <message> - Say message as admin in chat // @css/chat
- css_psay <#userid or name> <message> - Sends private message to player // @css/chat - css_psay <#userid or name> <message> - Sends private message to player // @css/chat
- css_csay <message> - Say message as admin in center // @css/chat - css_csay <message> - Say message as admin in center // @css/chat