# 🔎 Placeholders

PhoenixDuels supports **PlaceholderAPI**, allowing you to use player data from our plugin in other plugins that also support PlaceholderAPI. Below is a list of the available **PlaceholderAPI placeholders** as well as our **internal placeholders** that you can use in holograms.

## PlaceholderAPI Placeholders

The following is the list of the available placeholders that Phoenix Duels has, make sure to replace the \<mode> with the ID of your mode.

**General**

<table><thead><tr><th width="354">Placeholders</th><th>Description</th></tr></thead><tbody><tr><td>%phoenixduels_players_playing%</td><td>The amount of players playing.</td></tr><tr><td>%phoenixduels_players_playing_<strong>&#x3C;mode></strong>%</td><td>The amount of players playing on a specific mode.</td></tr><tr><td>%phoenixduels_players_queueing%</td><td>The amount of players queueing.</td></tr><tr><td>%phoenixduels_players_queueing_<strong>&#x3C;mode></strong>%</td><td>The amount of players queueing on a specific mode.</td></tr><tr><td>%phoenixduels_player_inqueue%</td><td>Whether the player is currently in queue.</td></tr><tr><td>%phoenixduels_player_queued_mode%</td><td>The mode the player is queueing for, or "Any Mode" in the any-mode queue.</td></tr><tr><td>%phoenixduels_player_queued_time%</td><td>How long the player has been in queue, as m:ss.</td></tr><tr><td>%phoenixduels_player_match_mode%</td><td>The mode of the match the player is playing.</td></tr><tr><td>%phoenixduels_player_inmatch%</td><td>Whether the player is currently in a match.</td></tr><tr><td>%phoenixduels_player_inspectating%</td><td>Whether the player is currently spectating a match.</td></tr><tr><td>%phoenixduels_player_inparty%</td><td>Whether the player is currently in a party.</td></tr><tr><td>%phoenixduels_total_wins%</td><td>The player's unranked, ranked and challenge wins added together.</td></tr></tbody></table>

**Ranked/Unranked**

The following \<arg> can take unranked, ranked, or challenge values.

| Placeholders                                                | Description                                        |
| ----------------------------------------------------------- | -------------------------------------------------- |
| %phoenixduels\_\<arg>\_total\_kills%                        | The amount of player's kills.                      |
| %phoenixduels\_\<arg>\_total\_deaths%                       | The amount of player's deaths.                     |
| %phoenixduels\_\<arg>\_kd\_ratio%                           | The KD of the player.                              |
| %phoenixduels\_\<arg>\_total\_wins%                         | The amount of player's wins.                       |
| %phoenixduels\_\<arg>\_total\_losses%                       | The amount of player's losses.                     |
| %phoenixduels\_\<arg>\_total\_draws%                        | The amount of player's draws.                      |
| %phoenixduels\_\<arg>\_win\_streak%                         | The win streak of the player.                      |
| %phoenixduels\_\<arg>\_lost\_streak%                        | The lose streak of the player.                     |
| %phoenixduels\_\<arg>\_kill\_streak%                        | The kill streak of the player.                     |
| %phoenixduels\_\<arg>\_death\_streak%                       | The death streak of the player.                    |
| %phoenixduels\_\<arg>**\_**&#x70;layers\_queueing%          | The amount of players queueing.                    |
| %phoenixduels\_\<arg>**\_**&#x70;layers\_queueing\_\<mode>% | The amount of players queueing on a specific mode. |
| %phoenixduels\_\<arg>\_players\_playing%                    | The amount of players playing.                     |
| %phoenixduels\_\<arg>\_players\_playing\_\<mode>%           | The amount of players playing on a specific mode.  |

**Elo**

<table><thead><tr><th width="354">Placeholders</th><th>Description</th></tr></thead><tbody><tr><td>%phoenixduels_ranked_global_elo%</td><td>The elo of the user on all modes.</td></tr><tr><td>%phoenixduels_ranked_<strong>&#x3C;mode></strong>_elo%</td><td>TThe elo of the user on a specific mode.</td></tr></tbody></table>

**Leaderboard**

| Placeholders (Global)                                |
| ---------------------------------------------------- |
| `%phoenixduels_<type>_<metric>%`                     |
| `%phoenixduels_<type>_<mode>_<metric>%`              |
| `%phoenixduels_<type>_<metric>_<rank>%`              |
| `%phoenixduels_<type>_<mode>_<metric>_<rank>%`       |
| `%phoenixduels_<type>_<metric>_<rank>_value%`        |
| `%phoenixduels_<type>_<mode>_<metric>_<rank>_value%` |

| Placeholders (Specific Period)                                |
| ------------------------------------------------------------- |
| `%phoenixduels_<period>_<type>_<metric>%`                     |
| `%phoenixduels_<period>_<type>_<mode>_<metric>%`              |
| `%phoenixduels_<period>_<type>_<metric>_<rank>%`              |
| `%phoenixduels_<period>_<type>_<mode>_<metric>_<rank>%`       |
| `%phoenixduels_<period>_<type>_<metric>_<rank>_value%`        |
| `%phoenixduels_<period>_<type>_<mode>_<metric>_<rank>_value%` |

### Period:

`all`, `daily`, `weekly`, `monthly`

### Type:

`unranked`, `ranked`, `challenge`

### Metric:

`totalkills`, `totaldeaths`, `totalwins`, `totallosses`, `totaldraws`, `kdratio`, `elo` \
\* elo is only available in the `all` period.

### Example:

* `%phoenixduels_ranked_crystal_totalkills_1_value%` - will return the name of the player that has the most kills in ranked for the crystal mode
* For leaderboard of elo use `%phoenixduels_ranked_elo_1%`&#x20;

**Other**

| Placeholders                                | Description                                |
| -------------------------------------------- | ------------------------------------------- |
| %phoenixduels\_nametag\_color%              | The nametag's color                        |
| %phoenixduels\_nametag\_letter%             | The nametag's letter                       |
| %phoenixduels\_nametag%                     | The nametag                                |
| %phoenixduels\_rejecting\_duel\_requests%   | If the player has duel requests disabled   |
| %phoenixduels\_rejecting\_party\_requests%  | If the player has party requests disabled  |

**Party**

| Placeholders                    | Description                                |
| -------------------------------- | ------------------------------------------- |
| %phoenixduels\_party\_leader%   | The name of the player's party leader.     |
| %phoenixduels\_party\_size%     | The amount of members in the player's party. |
| %phoenixduels\_party\_limit%    | The maximum amount of members allowed in the player's party. |

**Live Match**

| Placeholders                                                  | Description                       |
| -------------------------------------------------------------- | ---------------------------------- |
| %phoenixduels\_duel\_time\_left%                               | The time left of the duel.         |
| %phoenixduels\_match\_kills%                                   | The player's kills this match.     |
| %phoenixduels\_match\_deaths%                                  | The player's deaths this match.    |
| %phoenixduels\_match\_team\_kills%                             | The kills of the player's team.    |
| %phoenixduels\_match\_enemy\_kills%                            | The kills of every opposing team.  |
| %phoenixduels\_match\_team\_rounds%                            | The rounds won by the player's team.|
| %phoenixduels\_match\_enemy\_rounds%                           | The rounds won by every opposing team.|
| %phoenixduels\_match\_team<strong>&#x3C;n></strong>\_kills%  | The kills of team \<n> by position.|
| %phoenixduels\_match\_team<strong>&#x3C;n></strong>\_rounds% | The rounds won by team \<n> by position.|
| %phoenixduels\_match\_team<strong>&#x3C;n></strong>\_color%  | The color of team \<n> by position.|

## Internal Placeholders

The following list of placeholders can be used inside our plugin when running commands, editing messages, and your scoreboard.

| Placeholders                            | Description                         |
| --------------------------------------- | ----------------------------------- |
| %time\_left%                            | The time left of the duel.          |
| %opponents%                             | The list with the opponents.        |
| %opponent%                              | The name of your opponent.          |
| %opponent\_health%                      | The health of your opponent.        |
| %opponent\_ping%                        | The ping of the opponents.          |
| %mode%                                  | The current mode of the duel.       |
| %map%                                   | The current id of the map,          |
| %win\_rounds%                           | The player's won rounds,            |
| %lost\_rounds%                          | The player's lost rounds,           |
| %rounds\_to\_win%                       | The amount of rounds left to win.   |
| %cps%                                   | The player's clicks per second.     |
| %ping%                                  | The player's ping,                  |
| %boxing\_team\_score% (Requires Boxing) | The boxing score of your team.      |
| %boxing\_enemy\_score% (Reuires Boxing) | The boxing score of the enemy team. |
| %kills%                                 | The player's kills this match.      |
| %deaths%                                | The player's deaths this match.     |
| %team\_kills%                           | The kills of your team.             |
| %enemy\_kills%                          | The kills of every opposing team.   |
| %team1\_kills%, %team2\_kills%, ...     | The kills of a team by position.    |
| %team1\_rounds%, %team2\_rounds%, ...   | The rounds won by a team by position. |
| %team1\_color%, %team2\_color%, ...     | The color of a team by position.    |

Source: https://www.phoenixplugins.com/docs/phoenix-duels/plugins/placeholders