# PlaceholderApi

## PlaceholderAPI Support

**PrtMineTreasures** supports the use of placeholders provided by **PlaceholderAPI**, enabling greater customization for rewards and server interactions.

***

### Configuration Steps

1. **Download and Install PlaceholderAPI:**
   * Visit [PlaceholderAPI](https://www.spigotmc.org/resources/placeholderapi.6245/) and download the plugin.
   * After downloading, install the plugin on your server.
2. **Add Required Extensions:**
   * By default, no extensions are installed. To add support for specific placeholders, use the `/papi ecloud` command.
   * **Example:** To download the player extension, use the command below:

     ```yaml
     /papi ecloud download Player
     ```
   * After downloading the desired extensions, reload PlaceholderAPI with the command:

     ```yaml
     /papi reload
     ```

***

### Placeholder Usage Example

Below is a configuration example using the placeholder `%player_name%`:

```yaml
commands:
- "[MESSAGE] Congratulations, %player_name%! You found a treasure!"
- "[CONSOLE] give %player_name% diamond 5"
```

This example demonstrates how you can use the player's name to customize messages and commands executed on the server.
