Placeholders

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:

  • ACTIONS
  • NAME
  • LORE
  • SKULL-OWNER

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.

Placeholder API

You can also use placeholders from PlaceholderAPI if the plugin is installed. PlaceholderAPI provides placeholders for a wide range of plugins.

Note: you must use the format with percent signs, for example %player_gamemode%.