For some reason when I set the restricted
parameter to true
in RegisterCommand
and have
add_ace group.admin command allow # allow all commands
add_ace group.admin command.mycommand allow # It should work without this, but even with this it still doesn't
in my server.cfg it still shows as if the command is not allowed. I did indeed set myself to the group.admin
and commands like for example restart
work fine.
Edit:
Nevermind…
The restricted bool is not used on the client side. Permissions can only be checked on the server side, so if you want to limit your command with an ace permission automatically, make it a server command (by registering it in a server script).