Installation
To use ElectionsPlus placeholders, you need to install the PlaceholderAPI expansion.Install PlaceholderAPI
Make sure you have PlaceholderAPI installed on your server.
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.