# Placeholders

GlacierHub's PlaceholderAPI expansions and where placeholders work.

Placeholders need PlaceholderAPI. GlacierHub registers its expansions when the matching module is enabled.

## GlacierHub placeholders

| Placeholder | Value |
| --- | --- |
| `%glacierhubpoints_balance%` | The player's Points balance |
| `%glacierhubqueue_position%` | Position in their current queue |
| `%glacierhubqueue_size%` | Players in that queue |
| `%glacierhubqueue_server%` | The server being queued for |
| `%glacierhubcosmetics_hat%` | Selected hat |
| `%glacierhubcosmetics_wing%` | Selected wings |
| `%glacierhubcosmetics_particle%` | Selected particle trail |
| `%glacierhubcosmetics_pet%` | Selected pet |
| `%glacierhubcosmetics_effect%` | Selected death/kill effect |

## Placeholders in the default files

The bundled chat format, scoreboard and tab list use placeholders from other PlaceholderAPI expansions:

| Placeholder | Expansion |
| --- | --- |
| `%player_name%` | Player |
| `%vault_rank%`, `%vault_eco_balance%` | Vault, which also needs the Vault plugin plus a permissions and an economy plugin |

Download the expansions and reload PlaceholderAPI:

```text
/papi ecloud download Player
/papi ecloud download Vault
/papi reload
```

Without them the placeholders show up as raw text. Replace them with your own if you don't run Vault.

## Where placeholders work

Any PlaceholderAPI placeholder, from any expansion, can be used in:

- chat formats
- scoreboard title and lines
- tab header and footer
- custom item names and lore
- custom GUI menus
- announcements
- language file messages

```yaml
tablist:
  footer:
    - "&#647F9C▪ &#94A3B8Points &#647F9C» &#E2E8F0%glacierhubpoints_balance%"
```

## Message tokens

Inside GlacierHub's own messages, values are filled with `{name}` tokens, such as `{price}` in the shop lore. Command lists use `{player}` for the player's name and `{uuid}` for their UUID (`%player%` also works). The bundled English message shows which tokens each one uses.
