PlaceholderAPI
PlaceholderAPI can display player names, balances, worlds, and other player-specific values.
It is optional, so EasyMenu also works on servers without PlaceholderAPI.
Install it
- Install PlaceholderAPI 2.11.7 or later.
- Install the expansion required by each placeholder.
- Restart the server.
See the PlaceholderAPI placeholder list for expansion instructions.
Example
menu-title: "&6%player_name%'s menu"
menu-items:
- slot: 13
material: "GOLD_INGOT"
name: "&6Balance"
lore:
- "&7Current: &e%vault_eco_balance% G"
action:
type: message
message: "&aYour world is %player_world%."
Supported text
- Menu titles
- Item names
- Lore
- Messages
- Player commands
- Input prompts
Placeholders are not supported in materials, slots, sounds, menu sizes, input types, minimum and maximum values, or target menu IDs.
Colored prefixes
When an expansion returns a value such as &cAdmin, EasyMenu applies its color to titles, items, lore, messages, and prompts.
EasyMenu does not convert & color codes in commands.
Order with {input}
Chat input replaces {input} after PlaceholderAPI has finished.
If a player enters %player_name%, it stays as typed and is not evaluated as a placeholder.