Skip to content

Arguments

SuperRonanCraft edited this page Aug 8, 2020 · 3 revisions

Arguments allows you to check for many different types of conditions. Check if a players balance is too high, too low, just right. Or even check if the player has a certain rank to click/view an item!

Example:

# Check if player name is equal to a specific name
Arguments:
  <UNIQUEID>:
    Type: 'Equals'
    Input: '%player_name%'
    Output: 'Ronan'
    Commands:
    - 'message: &7Whoops! Seems like ur not "Ronan"!'

# Check if players balance is above or equal to 100
Arguments:
  <UNIQUEID>:
    Type: 'greaterOrEqual'
    Input: '%vault_eco_balance%'
    Output: 100
    Commands:
    - 'message: &7Whoops! Seems like ur not rich enough!'

Summary


Type

Required? Type Supports Placeholders?
Yes Node No

The condition type we want to check for.

Valid Nodes:

  • equals if input and output are equal to each other explicitly
  • equalsIgnoreCase if input equals output ignoring case
  • greater if input is greater than output
  • less if the input is less than output
  • greaterOrEqual if input is greater than or equal to output
  • lessOrEqual if input is less than or equal to output
  • contains if input contains the output
  • startsWith if the input starts with the output
  • endsWith if the input ends with the output

Input

Required? Type Supports Placeholders?
Yes Object Yes

The input we will provide to the condition.

Output

Required? Type Supports Placeholders?
Yes Object Yes

The outcome we want to have/compare when checking the condition.

Commands

Required? Type
No StringList

List of commands that will be performed if the argument did NOT pass.
List of available commands are here

Updated to 4.2.0

Clone this wiki locally