PlaceholderAPI

2commands
2files
3min read
Sheet 30 of 33 · Integrations

Filesconfig.yml · messages.yml

Fileconfig.ymlFilemessages.ymlCommand/paste buildingsCommand/paste statsWith PlaceholderAPI installed and placeholders.enabled: true (the default), IgnitePaste registers the ignitepaste expansion on start. The console confirms with PlaceholderAPI expansion registered. It is built in: there is nothing to download with /papi ecloud. Turning placeholders.enabled off and reloading unregisters it again.

config.yml
placeholders:
  enabled: true

Paste mode and the selection

PlaceholderReturns
%ignitepaste_in_mode%true while the player is in paste mode, else false
%ignitepaste_selected%The selected schematic's name, or none

Cooldowns and use limits

PlaceholderReturns
%ignitepaste_cooldown_<name>%Seconds left on the player's cooldown for that schematic, 0 when ready or unknown
%ignitepaste_cooldown_time_<name>%The same as a duration like 1h 5m, or Ready
%ignitepaste_uses_<name>%How many times the player has pasted that schematic
%ignitepaste_uses_left_<name>%Pastes left under the schematic's max-uses-per-player, ∞ when it has no cap

How the cooldown and the cap are set per schematic is on Cooldowns & Use Limits.

Buildings

PlaceholderReturns
%ignitepaste_buildings%Tracked buildings the player owns
%ignitepaste_buildings_max%The player's building cap, or unlimited
%ignitepaste_buildings_left%How many more buildings the player may place, or unlimited
%ignitepaste_building_<n>_<field>%One field of the player's n-th building

Command/paste buildings<n> counts from 1, in the order /paste buildings lists them. <field> is one of:

FieldReturns
nameThe schematic the building came from
idThe short id, the first 8 characters of the building's id
worldThe world it stands in
x, y, zIts origin
statusBusy while it is being upgraded or picked up, else Ready

A number past the last building returns an empty string, so a scoreboard line for building 3 stays blank for a player who owns two. See Tracked Buildings for what gets tracked and how the cap comes from permissions.

The running construction

PlaceholderReturns
%ignitepaste_construction_progress%Percent of the player's running construction, empty when nothing is building
%ignitepaste_construction_name%Name of the running construction, or None

These follow the same job as the boss bar, so they suit a sidebar or an action bar when the boss bar is off.

Server-wide stats

PlaceholderReturns
%ignitepaste_stats_pastes_<name>%Total pastes of a schematic, by every player
%ignitepaste_stats_revenue_<name>%Total money that schematic has taken, formatted by your Vault economy, a plain number without one

Command/paste statsThey are the numbers /paste stats prints, see Stats & Paste Log. They need no player, so they work in holograms and in the console. On MySQL they are re-read every mysql-refresh-seconds, so every server on the network shows the same count.

Names and offline players

<name> is the full schematic name, folder included:

%ignitepaste_cooldown_towers/watchtower%
%ignitepaste_uses_buildings/cottage_t1%
%ignitepaste_stats_pastes_plots/cottage%

Placeholder%ignitepaste_buildings_max%Placeholder%ignitepaste_buildings_left%Everything except the building cap works for offline players. %ignitepaste_buildings_max% and %ignitepaste_buildings_left% read the cap from permissions, which only an online player has, and return an empty string otherwise.

Filemessages.ymlThe words none, unlimited, Ready, Busy, None and ∞ come from labels in messages.yml, so they follow your translation. See Messages.

Examples

A scoreboard line with the building slots:

&7Buildings: &f%ignitepaste_buildings%&7/&f%ignitepaste_buildings_max%

A cooldown line that reads well when it runs out:

&7Watchtower: &f%ignitepaste_cooldown_time_towers/watchtower%

A DeluxeMenus requirement that only shows a "claim your plot house" button once:

view_requirement:
  requirements:
    not-built:
      type: string equals
      input: "%ignitepaste_uses_plots/cottage%"
      output: "0"

A hologram over a shop plot with how often it sold:

&6Cottage &7- built &f%ignitepaste_stats_pastes_plots/cottage%&7 times

Placeholders inside IgnitePaste

Fileconfig.ymlFilemessages.ymlThe <name>-style placeholders inside config.yml and messages.yml are IgnitePaste's own and are listed where they are used: the selector, the building manager, vouchers, blueprints, the boss bar and every message. PlaceholderAPI placeholders are not parsed in those.

Loading the index

Enter openUp Down moveEsc close