Leaf
6.0
6.0
  • Welcome
  • Placeholders
    • Standard
    • Custom
  • Commands
    • Overview
    • Basic Types
      • Info
  • Discord
    • Bot
    • Embeded Message
Powered by GitBook
On this page
Edit on GitHub
  1. Placeholders

Custom

Create your own placeholders by adding configuration to the placeholder folder.

example: "Hi there!"

This will create a placeholder with name {example} which will be replaced with Hi there!

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

This will create a placeholder with the name {server_formatted}. First, it will parse <server> which could return for example TestingServer. The server then checks if it is one of the options, otherwise it will return the default value. In this case, it returns &e&lTest Server.

rank:
  condition: "PERMISSION:leaf.rank.?"
  options:
    Default: "&f&lMember"
    "admin": "&c&lAdmin"

This will create a placeholder with the name {rank}. First, it will go through the options and replace the ? with the option name. For example, the first option is admin. Therefore, if the player has the permission leaf.rank.admin it will return &c&lAdmin

Copy and Paste Examples

Diff color when vanished
vanish_colour:
  condition: "MATCH:<vanished>"
  options:
    "true": "&#c0fce6"
    "false": "&#ffffee"
Server name with color
server_formatted:
  condition: "MATCH:<server>"
  options:
    Default: "&f&l<server>"
    "TestingServer": "&e&lTest Server"
PreviousStandardNextOverview

Last updated 3 months ago

Page cover image