# PlaceholderAPI

Placeholder api is a dependency you can use. You only need to download placeholder api and then just reload your server and it you have it.

You can even use leaderboards for the lives placeholder

## Placeholders:

* <kbd>%easysmp\_lives%</kbd> -> It returns with the lives you have
* <kbd>%easysmp\_hardcore\_enabled%</kbd>  -> It returns if hardcore is enabled. You can change how it returns in the config.yml.
* <kbd>%easysmp\_players\_alive%</kbd> -> It returns with the players alive **during the end event.** It will not work when the End event is disabled.
* <kbd>%easysmp\_border\_size%</kbd> -> It returns with the border **during the end event**. It will not work when the End event is disabled.
* <kbd>%easysmp\_time\_left%</kbd> -> It returns with the time left until sudden death stearts **during the end event**. It will not work when the End event is disabled.

Below is the config under extensions -> placeholderapi -> hardcore\_value. You can see enabled and disabled this means that what it returns if hardcore is enabled or disabled. If you look at the image you see that hardcore is enabled so it says yes in green.&#x20;

```yaml
extensions:
  placeholderapi:
    hardcore-value:
      enabled: "&aYes"
      disabled: "&cNo"
```

<figure><img src="https://3161000165-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FGMshlpIKjJ1VrbN4QU4z%2Fuploads%2FwyFZdEClWkHfASQ92IGK%2Fimage.png?alt=media&#x26;token=07a75e88-46d5-4efd-b668-cec19378a701" alt=""><figcaption></figcaption></figure>
