Skip to content
This repository has been archived by the owner on Mar 21, 2020. It is now read-only.

Requirements

HSGamer edited this page Nov 27, 2019 · 4 revisions

  • This is a tutorial on how to set requirements for VIEW-REQUIREMENT and CLICK-REQUIREMENT

USAGE

  • There are 3 things that you need to set: VALUE, TAKE and MESSAGE
  • TAKE and MESSAGE are optional. You don't need to set them

VALUE

  • 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)

TAKE

  • This is a true/false value. When you set it to true, it will take the required things (except PERMISSION and CONDITION)

MESSAGE

  • You can set the message that are sent to players who don't meet the requirements

Example

  • 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)"