Installation
To use ElectionsPlus placeholders, you need to install the PlaceholderAPI expansion.1
Install PlaceholderAPI
Make sure you have PlaceholderAPI installed on your server.
2
Download the expansion
Run the following command in your server console or as an operator:
3
Load the expansion
After downloading, reload PlaceholderAPI or restart your server to load the expansion.
Available Placeholders
Use these placeholders in any plugin that supports PlaceholderAPI:General Placeholders
| Placeholder | Description | Example Output |
|---|---|---|
%elections_open% | The number of elections that are currently open | 3 |
%election_isopen% | Whether there is at least one election open | true or false |
Election-Specific Placeholders
| Placeholder | Description | Example Output |
|---|---|---|
%elections_isopen_<name>% | Whether a specific election is open. Replace <name> with the election name | true or false |
%elections_voted_<election>% | Whether the player has voted in a specific election | true or false |
Usage Examples
Cache Notice
PlaceholderAPI expansions use the plugin’s cache system. The cache duration can be configured in the main config file. See Configuration for more details.