Placeholders
FeatherBoard uses PlaceholderAPI for dynamic values. Placeholders are written with % signs and are resolved per player, per frame.
lines:
player:
frames:
- '&7Player: &f%player_name%'
interval: 20
server:
frames:
- '&7Online: &a%server_online% &7/ &f%server_max_players%'
interval: 20Not the old {...} syntax
FeatherBoard 7 parses PlaceholderAPI's %placeholder% format. The legacy {placeholder} syntax from very old boards and tutorials is not resolved. Convert those lines to %placeholder%.
PlaceholderAPI setup
PlaceholderAPI is a required dependency. Install the plugin, then install the expansions your boards use:
/papi ecloud download Player
/papi ecloud download Server
/papi ecloud download Statistic
/papi reloadFeatherBoard can also ask the eCloud to download a missing expansion automatically when a board first uses it. This is controlled by:
placeholder:
auto-download: trueSet it to false if you manage expansions manually or the server has no internet access.
Common placeholders
| Placeholder | Example output | Provided by |
|---|---|---|
%player_name% | Alex | Player expansion |
%player_displayname% | Alex | Player expansion |
%player_health% | 18 | Player expansion |
%player_level% | 42 | Player expansion |
%player_world% | world | Player expansion |
%player_direction% | North | Player expansion |
%server_online% | 24 | Server expansion |
%server_max_players% | 100 | Server expansion |
%server_ram_used% | 512 | Server expansion |
%server_ram_total% | 4096 | Server expansion |
%server_tps_1% | 20.0 | Server expansion |
%server_tps_1_colored% | 20.0 in colour | Server expansion |
%statistic_leave_game% | 137 | Statistic expansion |
%vault_eco_balance_formatted% | 1,234.50 | Vault expansion |
%healthbar_default% | A heart bar | HealthBar expansion |
The full list is maintained on the PlaceholderAPI placeholder list. Exact names and availability depend on the expansion version. If a placeholder stays visible as %name%, the expansion is not installed or its identifier is misspelled.
FeatherBoard's own placeholders
These look like placeholders but are handled by FeatherBoard itself:
| Syntax | Used in | Description |
|---|---|---|
{{ setting:key }} | Scoreboard lines and titles | Replaced with the board setting key. |
{{ image:identifier }} | Scoreboard lines and titles | Replaced with an image glyph. Requires a resource pack. |
{{ offset:pixels }} | Scoreboard lines and titles | Inserts a pixel offset. The value is between -256 and 256. |
settings:
label-color: '&e'
lines:
label:
frames:
- '{{ setting:label-color }}&lPlayer: &f%player_name%'
icon:
frames:
- '{{ image:heart-icon }} &f%player_health%'See scoreboard files and images for details.
Placeholders in effects
Most effects receive text after placeholders are resolved:
- '<scroll width="24">&7TPS: &a%server_tps_1% &7· Online: &f%server_online%</scroll>'Some effects are placeholder-aware and need the raw text. placeholder is the common example:
- '<placeholder>stats_%player_world%_kills</placeholder>'This first resolves %player_world%, then resolves the resulting placeholder.
Performance
Placeholders are resolved when a frame is built. A placeholder that queries MySQL or a web API on every tick can slow the animation and, on a busy server, the whole main thread.
- Use a longer
intervalfor slow values. - Use
<repeat times="200">around values that only need to refresh occasionally. - Use
PERMISSION_CACHEDinstead of a database-backed permission check when possible. - Enable
tweaks.detect-animation-lagwhile testing to see which placeholder is slow.
lines:
ram:
frames:
- '<repeat times="200">&7RAM: &f%server_ram_used% &7MB</repeat>'
interval: 1Testing
Use /fb parse to test a placeholder or effect before reloading a board:
/fb parse &aHello %player_name%! You have %player_health% health.
/fb parse <rainbow>&lFeatherBoard</rainbow>If a placeholder is not installed, the command prints it literally, which makes it easy to spot. Check the server log for PlaceholderAPI errors as well.
