Requirements

General format

settings:
  requirements:
    list:
      minimumRequirements: Integer # the minimum amount of requirements a player must pass (default: -1, all) (OPTIONAL)
      'unique requirement name':
        # use !<type> to negate a requirement, for example '!string equals'
        type: String # the name of a valid requirement (see 'Types' below) (REQUIRED)
        optiona: Boolean # whether a requirement is optional (default: false) (OPTIONAL)
        failActions: List<Action> # actions executed if the requirement fails (OPTIONAL)

Types

Location

Requirements for player's current location Variables: Location

Distance

Check if the distance between player's location and a specific location is ≀ than n

Format

Numbers

Compare two numbers using math operations. The requirement uses Doubles, meaning decimals are supported.

Format

Equal (==)

Check if the numbers are equal

Greater (>)

Check if left is greater than right

Greater or equal (>=)

Check if left is greater or equal to right

Smaller (<)

Check if left is smaller than right

Smaller or equal (<=)

Check if left is smaller or equal to right

Strings

Compare two strings

Format

Equals (string equals)

Check if left is equal to right - case sensitive

Equals ignore case (string equals ignore case)

Check if left is equal to right - case insensitive

Contains (string contains)

Check if left contains right - case sensitive

Contains ignore case (string contains ignore case)

Check if left contains right - case insensitive

Variable types

Location

Format: world;x;y;z Example: world_the_end;25;100;30 - The End at 25/100/30

Examples

Check if the player has ≀ 10 HP

Check if the player is the owner of the WorldGuard region he's standing in

Last updated

Was this helpful?