Skip to content

Placeholders

Placeholders in zone texts and actions, and PlaceholderAPI placeholders for other plugins.

Placeholder Value
{player} Name of the player
{uuid} UUID of the player (only in actions)
{zone} Id of the zone
{zone_name} display-name of the zone
{prefix} prefix from the language file

Only in reward tracks (boss bar, action bar, title and tier actions):

Placeholder Value
{track} Id of the reward track, e.g. bonus
{time_left} Time until the reward (time-format from the language file)
{seconds_left} Time until the reward in seconds
{interval} Full time of the track (time-format)
{interval_seconds} Full time of the track in seconds
{progress} Progress of the track, 0–100
{chance} Reward chance of the player’s tier, e.g. 12.5
{tier} Id of the player’s tier ('' without a tier)
{tier_name} display-name of the player’s tier ('' without a tier)

When PlaceholderAPI is installed and hooks.placeholderapi is true, SzpontAFKZone adds its own placeholders, with the values of the player who sees them. <track> and <zone> are ids, e.g. %szpontafkzone_time_left_bonus%.

Placeholder Value
%szpontafkzone_in_zone% Yes or no: whether the player is in a zone
%szpontafkzone_zone% Id of the player’s zone
%szpontafkzone_zone_name% Display name of the player’s zone
%szpontafkzone_earning% Yes or no: whether the timers are running
%szpontafkzone_time_left_<track>% Time until the reward
%szpontafkzone_seconds_left_<track>% Time until the reward in seconds
%szpontafkzone_progress_<track>% Progress, 0–100
%szpontafkzone_interval_<track>% Full time of the track
%szpontafkzone_interval_seconds_<track>% Full time of the track in seconds
%szpontafkzone_chance_<track>% Reward chance of the player’s tier
%szpontafkzone_tier_<track>% Id of the player’s tier
%szpontafkzone_tier_name_<track>% Display name of the player’s tier
%szpontafkzone_zone_players_<zone>% Players in that zone
%szpontafkzone_zone_name_<zone>% Display name of that zone
%szpontafkzone_zone_enabled_<zone>% Yes or no: whether that zone is enabled

The words for yes, no and “no value” are set under placeholders in the language file (yes, no, none). Placeholders of other plugins (%...%) work in every SzpontAFKZone text and action.