DUXPLIMA Documentation

Placeholders

The placeholders inside uxmPVPCore's messages, and the PlaceholderAPI placeholders for scoreboards, tab lists and other plugins.

uxmPVPCore has two kinds of placeholders.

KindLooks likeWhere it works
Message placeholders{pvp_kills}, {combat_time}Inside uxmPVPCore's own files: messages, bossbar, menus, broadcasts
PlaceholderAPI placeholders%pvpcorestats_kills%In any plugin that supports PlaceholderAPI: scoreboards, tab lists, holograms, chat

With PlaceholderAPI installed, PlaceholderAPI placeholders also work inside uxmPVPCore's messages where the message's comment says so.

Message placeholders

Which {token} a message can use depends on what the message is about. The comment above each message in its file lists them. In general:

GroupAvailable inExample
{player}Every message about a player{player}
{combat_...}Messages about a fight in progress: combat tag messages, the bossbar and action bar, combat log broadcasts{combat_time}
{pvp_...}Messages about a player's statistics: /stats, kill streaks, ranks, leaderboards{pvp_rating}
{battlelog_...}The battle log menus and reports{battlelog_killer}
{event_...}Event announcements{event_display_name}

Some messages have placeholders of their own, such as {time} or {module}; their comments name them.

Combat

PlaceholderShows
{combat_time}Seconds left in combat
{combat_player}The tagged player
{combat_attacker}The last player who hit them, or -
{combat_attacker_health}The attacker's health, such as 14.5
{combat_attacker_health_hearts}The attacker's health as hearts
{combat_enemy_count}How many players they hit in this fight
{combat_damage_given_total}Damage they dealt in this fight
{combat_damage_taken_total}Damage they took in this fight
{combat_progress_percentage}How much of the tag has run out, from 0 to 100
{combat_progress_bar}A bar that empties as the tag runs out, drawn by progressbarSettings

Statistics

PlaceholderShows
{pvp_name}Player name
{pvp_kills}, {pvp_deaths}Kills and deaths
{pvp_kd_ratio}Kills divided by deaths, two decimals
{pvp_wins}, {pvp_losses}, {pvp_winrate}Fights won and lost, and the win percentage
{pvp_given_damage}, {pvp_received_damage}All damage dealt and taken
{pvp_rating}Rating, as a whole number
{pvp_peak_rating}, {pvp_lowest_rating}The highest and lowest rating ever reached
{pvp_rating_gained}, {pvp_rating_lost}All rating ever won and lost
{pvp_rating_change}Rating gained minus rating lost, with a sign: +120.5
{pvp_current_streak}, {pvp_best_streak}The current and the best kill streak
{pvp_total_streaks}How many kill streaks the player reached
{pvp_daily_kills}, {pvp_daily_deaths}Kills and deaths since the last daily reset
{pvp_combat_time}Total time spent in combat
{pvp_combat_logouts}How often they logged out in combat
{pvp_afk_kills}Kills on AFK players
{pvp_last_activity}, {pvp_last_kill}, {pvp_last_death}When, written as "5m ago" style
{pvp_first_join}, {pvp_last_join}When they first and last joined
{pvp_rank}, {pvp_rank_displayname}Their rank's id and display name
{pvp_rank_progress}How far they are through their rank, such as 40.0%
{pvp_rank_min_rating}, {pvp_rank_max_rating}Their rank's rating range
{pvp_next_rank}, {pvp_next_rank_displayname}The next rank
{pvp_rating_to_next_rank}Rating still needed for the next rank
{pvp_avg_damage_per_kill}Damage dealt divided by kills
{pvp_survival_rate}Kills divided by kills plus deaths, as a percentage
{pvp_efficiency}Kills × 2 + wins × 1.5 − deaths × 0.5 − losses × 0.3, never below 0
{pvp_total_critical_hits}, {pvp_total_missed_hits}Critical hits, and hits that were not critical (the plugin counts these as misses)
{pvp_critical_hit_ratio}The share of hits that were critical

The rank placeholders need the Advanced Statistic module.

Battle logs

PlaceholderShows
{battlelog_id}The battle's number
{battlelog_victim}, {battlelog_killer}Who died and who killed them
{battlelog_damage_given}, {battlelog_damage_taken}, {battlelog_damage_total}, {battlelog_damage_ratio}Damage in the battle
{battlelog_duration}, {battlelog_duration_formatted}How long it lasted, in seconds or written out
{battlelog_start_time}, {battlelog_end_time}, {battlelog_start_date}, {battlelog_end_date}When it started and ended
{battlelog_time_ago}, {battlelog_start_time_ago}How long ago it ended or started
{battlelog_world}, {battlelog_x}, {battlelog_y}, {battlelog_z}, {battlelog_location}Where it started
{battlelog_end_reason}DEATH, LOGOUT or EXPIRED
{battlelog_final_weapon}The item of the last hit
{battlelog_participant_count}How many players took part
{battlelog_battle_intensity}, {battlelog_was_intense}Damage per second of the battle, and Yes when it lasted 30 seconds or more with 20 damage or more
{battlelog_top_attacker}, {battlelog_top_attacker_damage}Who dealt the victim the most damage, and how much
{battlelog_top_target}, {battlelog_top_target_damage}Whom the victim hurt most, and how much
{battlelog_victim_critical_hits}, {battlelog_victim_critical_rate}The victim's critical hits
{battlelog_victim_miss_count}, {battlelog_victim_longest_combo}The victim's non-critical hits and longest run of critical hits
{battlelog_killer_to_victim_critical_rate}, {battlelog_victim_to_killer_critical_rate}Critical rate of each side against the other
{battlelog_killer_to_victim_miss_count}, {battlelog_victim_to_killer_miss_count}Non-critical hits of each side
{battlelog_killer_to_victim_longest_combo}, {battlelog_victim_to_killer_longest_combo}Longest run of critical hits of each side

Events

PlaceholderShows
{event_name}, {event_display_name}The event's id and display name
{event_description}Its description
{event_status}Running or idle, with the texts from EventManager.yml

PlaceholderAPI

Install PlaceholderAPI and these work in any plugin. No eCloud download is needed; uxmPVPCore registers them itself.

pvpcorestats

%pvpcorestats_<name>% gives the statistic {pvp_<name>} from the tables above, for the player the placeholder is shown to. Every statistic works: %pvpcorestats_kills%, %pvpcorestats_rating%, %pvpcorestats_rank_displayname%, %pvpcorestats_kd_ratio% and so on.

For an offline player, the first request starts loading their data and returns an empty text; the next request shows the value.

pvpcoretag

PlaceholderShows
%pvpcoretag_tagged%true or false (tagged, notTagged in CombatTagSettings.yml)
%pvpcoretag_status%Tagged or Not Tagged (taggedStatus, notTaggedStatus)

The texts are set under placeholderMessages in CombatTagSettings.yml. To show the remaining time or the attacker on a scoreboard, use the combat placeholders in uxmPVPCore's own bossbar or action bar; see Troubleshooting.

leaderboard

<type> is a leaderboard type from AdvancedStatistic.yml: rating, kills, kdr, streak, wins, winrate, or one you added.

PlaceholderShows
%leaderboard_<type>_<place>_name%The player at that place, such as %leaderboard_kills_1_name%
%leaderboard_<type>_<place>_value%Their value, such as %leaderboard_kills_1_value%
%leaderboard_rank_<type>%The viewer's own place
%leaderboard_rank_total_<type>%How many players are on that leaderboard
%leaderboard_rank_formatted_<type>%Both, as 3 / 120
%leaderboard_meets_req_<type>%Whether the viewer meets that leaderboard's requirements

Leaderboards are read from a cache. While a page is not cached yet, the placeholder shows the loading text and fills in on a later request. The texts for loading, no data, not ranked and the requirement answers are in leaderboardSettings. See Leaderboards.

eventmanager

PlaceholderShows
%eventmanager_next_name%, %eventmanager_next_displayname%The next scheduled event
%eventmanager_next_time%When it starts, as "today at 20:00", "tomorrow at 20:00", "Saturday at 20:00" or a date
%eventmanager_active_count%How many events are running
%eventmanager_active_name%, %eventmanager_active_displayname%The running event
%eventmanager_status_<event>%Running or idle, for one event such as %eventmanager_status_ffa%

The words "today", "tomorrow", day names and month names come from timeFormats in Core.yml. The texts for no event come from placeholderSettings in EventManager.yml.

ffa

These need the FFA extension.

PlaceholderShows
%ffa_state%WAITING, JOINABLE, STARTING, RUNNING or ENDING
%ffa_registration_status%Whether joining is open
%ffa_registration_time%, %ffa_registration_time_formatted%Time left to join
%ffa_players_lobby%, %ffa_players_arena%, %ffa_players_count%Players waiting, fighting, and both
%ffa_min_players%, %ffa_max_players%The profile's limits
%ffa_player_status%Whether the viewer is in the lobby, in the arena or not in FFA
%ffa_event_active%, %ffa_event_name%Whether an FFA event runs, and its name
%ffa_event_remaining%, %ffa_event_remaining_formatted%Time left in the event

With several FFA profiles, the placeholders show the profile the viewer is in, or the first one running. To pick one, put profile_<id>_ or event_<name>_ in front of the name: %ffa_profile_main_players_count%.

Related: Statistics and Rating, Leaderboards