Requirements

This section is used for player options and conditional dialogues. Every line of the requirements list refers to a condition that MUST be true. You can use all kind of PlaceholderAPI variables.

For example, in the config below, there is an option which requires the player to be level 20 or greater to appear on the chat. If the player doesn't accomplishes this condition the option will not be displayed.

option3:
  text: "&eI am kind of a hero here."
  requires:
  - "%player_level% >= 20"
  start_conversation: conversation4

You can also check for 'or' conditions, meaning that a condition line will be approved if one of many conditions in the same line is accomplished. For example, in this option there is just one condition. The player must be level 20 or greater, OR the player must be op.

option3:
  text: "&eI am kind of a hero here."
  requires:
  - "%player_level% >= 20 or %player_is_op% == yes"
  start_conversation: conversation4

You can also compare two variables in one condition line.

conditions:
- '%something% contains %player_name%'

Type of Conditionals

For Text

  • equals, ==

  • !equals, !=

  • equalsIgnoreCase

  • !equalsIgnoreCase

  • startsWith

  • !startsWith

  • contains

  • !contains

For Numbers

  • equals, ==

  • !equals, !=

  • >=

  • <=

  • >

  • <

Last updated