# PlaceholderAPI Variables

These are the PlaceholderAPI variables that ServerVariables offers, you can use them with other plugins.

## Normal Variables Placeholders

| Placeholder                                                 | Description                                                             |
| ----------------------------------------------------------- | ----------------------------------------------------------------------- |
| `%servervariables_globalvalue_<variable>%`                  | Gets the value of a global/server variable.                             |
| `%servervariables_value_<variable>%`                        | Gets the value of a player variable.                                    |
| `%servervariables_globaldisplay_<variable>%`                | Gets the display value of a global/server variable.                     |
| `%servervariables_display_<variable>%`                      | Gets the display value of a player variable                             |
| `%servervariables_value_otherplayer_<player>:<variable>%`   | Gets the value of a player variable specifying the player name.         |
| `%servervariables_display_otherplayer_<player>:<variable>%` | Gets the display value of a player variable specifying the player name. |
| `%servervariables_initial_value_<variable>%`                | Gets the initial value of a variable.                                   |

## List Variables Placeholders

| Placeholder                                                | Description                                                                                           |
| ---------------------------------------------------------- | ----------------------------------------------------------------------------------------------------- |
| `%servervariables_list_globalvalue_<index>_<variable>%`    | Gets the value of the specified index on a global/server list variable.                               |
| `%servervariables_list_value_<index>_<variable>%`          | Gets the value of the specified index on a player list variable.                                      |
| `%servervariables_list_globaldisplay_<index>_<variable>%`  | Gets the display value of the specified index on a global/server list variable.                       |
| `%servervariables_list_display_<index>_<variable>%`        | Gets the display value of the specified index on a player list variable.                              |
| `%servervariables_list_globallength_<variable>%`           | Gets the current length of a global/server list variable.                                             |
| `%servervariables_list_length_<variable>%`                 | Gets the current length of a player list variable.                                                    |
| `%servervariables_list_globalcontains_<variable>:<value>%` | Checks whether a global/server list variable contains the specified value. Returns 'true' or 'false'. |
| `%servervariables_list_contains_<variable>:<value>%`       | Checks whether a player list variable contains the specified value. Returns 'true' or 'false'.        |
| `%servervariables_list_globalvalues_<variable>%`           | Gets the set values of a player list variable with a configurable separator.                          |
| `%servervariables_list_values_<variable>%`                 | Gets the set values of a global/server list variable with a configurable separator.                   |


---

# Agent Instructions: 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:

```
GET https://ajneb97.gitbook.io/servervariables/placeholderapi-variables.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
