JavaScript Condition

With this condition you can create a lot of custom conditions.

You have two variables: Player (Rapresents the Player) and Server (Rapresent the Server).

Now you can create a javascript expression that needs to return a boolean (true or false). Just set the type to JAVASCRIPT and the value to the expression.

Here is an example:

conditions:
    moneyExample:
        type: JAVASCRIPT
        value: "Player.hasPermission('example.permission');"
        text: "Example condition text"

Last updated