This patch adds a feature that allows you to conditionally execute commands based on player permissions. You can now specify permissions for each rank’s "commands" section and run a command only if the player has the required permissions.
SYNTAX
Use perm_<permission>: <command> to run a command if the player has the specified permission.
You can check for multiple permissions:
- perm_<permission1>,<permission2>: <command> - Executes if the player has all listed permissions (AND condition).
- perm_<permission1>;<permission2>: <command> - Executes if the player has at least one of the listed permissions (OR condition).
EXAMPLE
Code (YAML):
- 'perm_rank.vip1;rank.vip2
: eco give
%player% 1000'
- 'perm_rank.vip1,rank.vip2
: eco give
%player% 1000'
- The first command checks if the player has both rank.vip1 and rank.vip2 permissions before executing the command.
- The second command checks if the player has either rank.vip1 or rank.vip2 permission before executing the comma