Skip to main content

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:
/papi ecloud download electionsplus
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

PlaceholderDescriptionExample Output
%elections_open%The number of elections that are currently open3
%election_isopen%Whether there is at least one election opentrue or false

Election-Specific Placeholders

PlaceholderDescriptionExample Output
%elections_isopen_<name>%Whether a specific election is open. Replace <name> with the election nametrue or false
%elections_voted_<election>%Whether the player has voted in a specific electiontrue or false

Usage Examples

menu_title: 'Elections'
rows: 3
items:
  status:
    material: PAPER
    slot: 13
    display_name: '&aElection Status'
    lore:
      - '&7Open Elections: &e%elections_open%'
      - '&7Presidential Open: &e%elections_isopen_presidential%'
      - '&7You voted: &e%elections_voted_presidential%'

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.