> For the complete documentation index, see [llms.txt](https://docs.xandtech.fr/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.xandtech.fr/home/xplayerexp/reference/placeholderapi.md).

# PlaceholderAPI

Requires [PlaceholderAPI](https://www.spigotmc.org/resources/placeholderapi.6245/) — the `xplayerexp` expansion registers itself automatically if it's installed, no separate download needed. Every placeholder below is written as `%xplayerexp_<name>%`.

## General

| Placeholder            | Returns                                           |
| ---------------------- | ------------------------------------------------- |
| `%xplayerexp_version%` | The running XPlayerEXP version. No player needed. |

## Player XP

| Placeholder                      | Returns                                                                                                                    |
| -------------------------------- | -------------------------------------------------------------------------------------------------------------------------- |
| `%xplayerexp_total_exp%`         | The player's total raw XP points (vanilla's exponential curve), regardless of `calculation-mode`.                          |
| `%xplayerexp_level%`             | The player's current XP level.                                                                                             |
| `%xplayerexp_exp_progress%`      | Progress toward the next level, as a fraction between `0.0` and `1.0` (same value Bukkit's own `Player#getExp()` returns). |
| `%xplayerexp_exp_to_next_level%` | Raw XP points still needed to reach the next level.                                                                        |

## Double XP multiplier

| Placeholder                     | Returns                                                                                                                                               |
| ------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------- |
| `%xplayerexp_multiplier%`       | The **final** multiplier currently applying to this player — event multiplier × their own permission bonus, formatted to one decimal (e.g. `4.0`).    |
| `%xplayerexp_base_multiplier%`  | Just the event's multiplier (`1.0` if no event is running).                                                                                           |
| `%xplayerexp_permission_bonus%` | Just the player's own [bonus-permissions](/home/xplayerexp/features/double-xp.md#how-the-multiplier-is-applied) multiplier (`1.0` if they hold none). |

## Double XP event status

| Placeholder                            | Returns                                                                    |
| -------------------------------------- | -------------------------------------------------------------------------- |
| `%xplayerexp_event_active%`            | `true`/`false`.                                                            |
| `%xplayerexp_event_multiplier%`        | The running event's multiplier, or `1.0` if none is active.                |
| `%xplayerexp_event_time_left%`         | Time remaining, formatted (e.g. `12m 4s`), or `0s` if no event is running. |
| `%xplayerexp_event_time_left_seconds%` | Same, as raw whole seconds, or `0`.                                        |

**Example:** `%xplayerexp_event_active%` gates a scoreboard line that only shows during an event; `%xplayerexp_event_time_left%` fills in its countdown.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.xandtech.fr/home/xplayerexp/reference/placeholderapi.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
