This repository has been archived by the owner on Mar 21, 2020. It is now read-only.
forked from filoghost/ChestCommands
-
Notifications
You must be signed in to change notification settings - Fork 5
Requirements
HSGamer edited this page Nov 27, 2019
·
4 revisions
- This is a tutorial on how to set requirements for
VIEW-REQUIREMENT
andCLICK-REQUIREMENT
- There are 3 things that you need to set:
VALUE
,TAKE
andMESSAGE
-
TAKE
andMESSAGE
are optional. You don't need to set them
- This could be a number, a expression or a string (placeholders allowed) based on what type the requirement is.
- Here is a list of requirement types and their final value:
-
LEVEL
: number -
MONEY
: number -
PERMISSION
: string -
POINT
: number -
TOKEN
: number -
CONDITION
: boolean (True/False expression) -
ITEM
: string (see Item Formatting)
-
- This is a true/false value. When you set it to true, it will take the required things (except
PERMISSION
andCONDITION
)
- You can set the message that are sent to players who don't meet the requirements
- This will just check if you have at least 10$ and not take it, and also send the message
MONEY:
VALUE: 10
TAKE: false
MESSAGE: "&cYou don't have enough money"
- If you just set
VALUE
, you can set it "directly". Here is a example for that, this time it will check if the player has a gold block and a diamond block, and take them.
ITEM: 'gold_block;diamond_block'
- Let's make it more complicated. This time we will check if the money of the player is higher than 100 multiplied by his level plus 1.
MONEY: "100 * ({level} + 1)"