JavaScript Condition

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

You have two variables: Player (Rapresents the Playerarrow-up-right) and Server (Rapresent the Serverarrow-up-right).

Now you can create a javascript arrow-up-rightexpression that needs to return a boolean arrow-up-right(true or false). Just set the type to JAVASCRIPT arrow-up-rightand the value to the expression.

Here is an example:

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

Ultimo aggiornamento

È stato utile?