Messages

The messages configuration file

Default Configuration

Example
#  __         ______     ______     ______
# /\ \       /\  ___\   /\  __ \   /\  ___\
# \ \ \____  \ \  __\   \ \  __ \  \ \  __\
#  \ \_____\  \ \_____\  \ \_\ \_\  \ \_\
#   \/_____/   \/_____/   \/_/\/_/   \/_/
#
# Author : Smudge

# Custom placeholders can be used in any message using curly brackets.
# You can add as many custom placeholders as you like.
#
# Example custom placeholders :
# {message} {error} {vanish_colour} {server} {rank}
placeholders:

  # Simple placeholder.
  message: "&8&l[&f&lServer&8&l]&a"
  error_colour: "&7"

  # Conditional placeholder.
  # Conditions are listed in the wiki.
  vanish_colour:
    condition: "MATCH:<vanished>"
    options:
      true: "&#c0fce6"
      false: "&#ffffee"

  server_formatted:
    condition: "MATCH:<server>"
    options:
      Default: "&f&l<server>"
      TestingServer: '&e&lTest Server'

  rank_colour:
    condition: "PERMISSION:leaf.rank.?"
    options:
      Default: "&f"
      admin: "&a"

messages:

  incorrect_arguments: "{error_colour}Incorrect arguments. %command%"
  database_disabled: "{error_colour}Database disabled."
  database_empty: "{error_colour}There are no records in the database."
  player_command: "{error_colour}This command can only be run by the player."
  error: "{error_colour}Error occurred while running command."

Last updated