> For the complete documentation index, see [llms.txt](https://docs.supremeventures.ca/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.supremeventures.ca/premium-plugins/player-levels-10.00/placeholder-scripts.md).

# Placeholder Scripts

### What is it?

The levels scripting engine uses PlaceholderAPI placeholders to determine if level experience is being gained. This is to prevent long standing issues with adding support for dozens of plugins & dozens of plugins requiring support for our plugins.

### How to Use

Each level can have unlimited requirements, each on its own line in the config.

```yaml
levels:
  '1':
    ...
    comparisons:
    - '%guccistats_player;;VOTE% >= 3'
    - '%guccistats_player;;PLAYER_TIME_CONNECTED_r% >= 3600'
```

Each requirement has 2 parts. Either side can be a PlaceholderAPI placeholder - with its `%%` formatting. Each comparison has the following requirements

* Must be in the following format
  * `<placeholder or value> <operator> <placeholder or value>`
  * The values & operators must be separated by a space<br>
* Both sides of the comparison must be the same type
  * Both sides (after placeholders are parsed) must be in the same format.&#x20;
  * Our scripts currently support the following type comparisons natively.&#x20;
    * `UUID` - Comparing UUID's (Player UUID's, Factions, Guilds etc)
    * `Number` - Comparing 2 Numbers (1, 100, 1.1)
    * `String` - Comparing 2 Strings (Usernames, Values etc)<br>
* Both values must be separated by a valid comparison operator.
  * `==` Checks if both sides are the same/equal. Supports Strings, Numbers, and UUID.
  * `!=` Checks if the 2 sides do not equal each other. Supports Strings, Numbers, and UUID.
  * `>=` Checks if the left side is greater then or equal to the right. Supports Numbers.
  * `<=` Checks if the left side is less then or equal to the right side. Supports Numbers.
  * `>` Checks if the left side is greater then the right side. Supports Numbers.
  * `<` Checks if the left side is less then the right side. Supports Numbers.


---

# 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.supremeventures.ca/premium-plugins/player-levels-10.00/placeholder-scripts.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.
