Requirements

A requirement/condition has the following format: <variable> <conditional> <value> Example: %player_level% >= 15

The following example will check if the player has the ctb.very_hard permission and has completed the hard category.

requirements:
  - "%player_has_permission_ctb.very_hard% == yes"
  - "%connecttheblocks_category_completed_hard% == true"

You can also check for 'or' conditions, meaning that a condition line will be approved if one of many conditions in the same line is accomplished. For example, here there is just one condition. The player must be level 20 or greater, OR the player must be op.

requirements:
  - "%player_level% >= 20 or %player_is_op% == yes" 

Remember to download the PlaceholderAPI expansion of variables you are using, with the following command: /papi ecloud download <expansion>

Type of Conditionals

For Text

  • equals, ==

  • !equals, !=

  • equalsIgnoreCase

  • !equalsIgnoreCase

  • startsWith

  • !startsWith

  • contains

  • !contains

For Numbers

  • equals, ==

  • !equals, !=

  • >=

  • <=

  • <

  • >

Last updated