Placeholders are special strings that will be replaced by a variable value when a menu is opened. They can be used in the following icon attributes:

  • NAME
  • LORE

List of valid placeholders:

Placeholder Description
{player} The name of the player currently viewing the menu.
{money} The amount of money owned by the player viewing the menu (requires a valid economy).
{world} The world of the player viewing the menu.
{online} Number of online players in the server.
{max_players} Number of maximum player slots in the server.

You can also use placeholders from PlaceholderAPI if you have the plugin installed.