Skip to content

Placeholders ​

FeatherBoard uses PlaceholderAPI for dynamic values. Placeholders are written with % signs and are resolved per player, per frame.

yaml
lines:
  player:
    frames:
      - '&7Player: &f%player_name%'
    interval: 20
  server:
    frames:
      - '&7Online: &a%server_online% &7/ &f%server_max_players%'
    interval: 20

Not 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:

text
/papi ecloud download Player
/papi ecloud download Server
/papi ecloud download Statistic
/papi reload

FeatherBoard can also ask the eCloud to download a missing expansion automatically when a board first uses it. This is controlled by:

yaml
placeholder:
  auto-download: true

Set it to false if you manage expansions manually or the server has no internet access.

Common placeholders ​

PlaceholderExample outputProvided by
%player_name%AlexPlayer expansion
%player_displayname%AlexPlayer expansion
%player_health%18Player expansion
%player_level%42Player expansion
%player_world%worldPlayer expansion
%player_direction%NorthPlayer expansion
%server_online%24Server expansion
%server_max_players%100Server expansion
%server_ram_used%512Server expansion
%server_ram_total%4096Server expansion
%server_tps_1%20.0Server expansion
%server_tps_1_colored%20.0 in colourServer expansion
%statistic_leave_game%137Statistic expansion
%vault_eco_balance_formatted%1,234.50Vault expansion
%healthbar_default%A heart barHealthBar 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:

SyntaxUsed inDescription
{{ setting:key }}Scoreboard lines and titlesReplaced with the board setting key.
{{ image:identifier }}Scoreboard lines and titlesReplaced with an image glyph. Requires a resource pack.
{{ offset:pixels }}Scoreboard lines and titlesInserts a pixel offset. The value is between -256 and 256.
yaml
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:

yaml
- '<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:

yaml
- '<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 interval for slow values.
  • Use <repeat times="200"> around values that only need to refresh occasionally.
  • Use PERMISSION_CACHED instead of a database-backed permission check when possible.
  • Enable tweaks.detect-animation-lag while testing to see which placeholder is slow.
yaml
lines:
  ram:
    frames:
      - '<repeat times="200">&7RAM: &f%server_ram_used% &7MB</repeat>'
    interval: 1

Testing ​

Use /fb parse to test a placeholder or effect before reloading a board:

text
/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.

Released under a proprietary license. FeatherBoard is not affiliated with Mojang or Microsoft.