Requirement/Checks
Our plugins offers a nice system to eval expressions, for example arithmetical, permissions or even JavaScript.
Here is how to use our requirements:
Permission requierment
This will allow you to check if a player have a specified permission node.
# All you can write the requirement however you want, those are 3 main examples:
[require(permission,permission.node)] require(permission,permission.node) check(permission,permission.node)
If you want to negate this (Not having the permission) just add ! in the front of the permission requirement like this require(!permission,permission.node)
Expression requierment
This will allow you to check if a player have a specified permission node.
# All you can write the requirement however you want, those are 3 main examples:
[require(expression)] first operator second require(expression,first,operator,second) check(expression,first,operator,second)
Expression arguments
First
This is the first argument, can be a string, a number or a placeholder.
Second
This is the second argument, can be a string, a number or a placeholder.
Operator
This is the operation that will be check for the first and second values
When using a string as the first or second operand, please only use the equality operators ==
or !=
. You should only use the other operators (such as >, <, >=, <=) if the input can be successfully parsed as a number.
Last updated