-
Notifications
You must be signed in to change notification settings - Fork 44
Requirements
This is the syntax for the requirement(s).
Replace [requirement-type] with one of the requirements listed below.
Also make sure to use the right requirement (view_requirement, left_click_requirement, right_click_requirement or open_requirement) depending on where you want to use it.
view_requirement: # Can also be click or open_requirement requirements: requirement_name: # Can be anything but it must be unique if you use more than 1 requirement [requirement-type]
For right/left_click_requirement you can add deny_commands: so when the requirements aren't true it will run the commands under deny_commands:. deny commands can be any of this.
left_click_requirement: # or right_click_requirement: requirements: requirement_name: # Can be anything but it must be unique if you use more than 1 requirement [requirement-type] deny_commands: - '[message] &cyou don''t have access for this item.'
Checks, if a user has a certain permission
type: has permission permission: your.permission.here
Checks, if a player has enough money (Vault required)
type: has money amount: 100
Checks, if a player has a certain item
type: has item material: STONE data: 1 amount: 32 name: 'Example name' lore: - 'Example lore 1' - 'Example lore 2'
Evaluates a javascript expression that must return true or false
type: javascript expression: '%vault_eco_balance% >= 100'
Checks, if string input: equals to string output:
type: string equals input: '%player_name%' output: 'aBooDyy'
Checks, if string input: equals to string output: but it ignores case
type: string equals ignore case input: '%player_name%' output: 'aboodyy'
Checks, if string input: contains string output:
type: string contains input: '%player_name%' output: 'A'
Compares number values. Returns true or false. Checks if integer/placeholder input: is compared to integer/placeholder output:
type: (==, >, >=, <, <=, !=) input: '17' output: '100'
- Placeholders
- Materials:
- Enchantments (Be aware that some enchantments are not available on some items.)
- Dye Colors
- Pattern Types
- Sound Types