variable

Set the value of a variable.

Example
change_theme:
  type: "variable"
  enabled: true
  name: "theme"
  # The variable to save to.
  variable: "theme"
  # Suggest options for the player to choose from.
  suggest:
    - "green"
    - "gray"
  # Only allow values from suggest list.
  # Defaults to false.
  only_allow_suggestions: true
  incorrect_value: "{error_colour}You can only set the theme to &fgreen &7or &fgray."
  correct_value: "{message} Theme is now set to &f<theme>"

Last updated