-
Notifications
You must be signed in to change notification settings - Fork 1
Placeholders
The following placeholders are supported by Boost for use with PlaceholderAPI.
You can use these PAPI-supported placeholders on holograms. You will need a hologram plugin and a plugin to allow that hologram plugin to use placeholders through PlaceholderAPI and ProtocolLib
Example command when using: Holographic Displays, AND Holographic Extension or Holographic Placeholders, AND ProtocolLib
/hd create topMontly First: {slow}%boost_top_monthly_first_player% - {slow}%boost_top_monthly_first_wins% wins
That will create a hologram called topMonthly with one line showing the top player and their win count over the last month, e.g. "First: pmme - 99 wins". You would then use "/hd addline topMonthly ..." to add extra lines for the second player, third and so on. Specifying {slow} update speed means it will update every 5 seconds, which should be fast enough for general use.
Example command when using: Holograms, AND Holograms-Placeholders, AND ProtocolLib
/holograms create arena1weekly 1st %boost_top_weekly_first_player_Arena3% - %boost_top_weekly_first_wins_Arena3%
That will create a hologram called arena1weekly with one line showing the top player and their win count in a game named Arena3 over the last week, e.g. "1st pmme - 43". You would then use "/holograms addline arena1weekly ..." to add extra lines for the second player, third and so on.
The leader board placeholders follow a pattern: %boost_top_<period>_<position>_<stat>% or %boost_top_<period>_<position>_<stat>_<game>% where the values in < > are each one of the following:
-
<period>is one oftotal,monthly,weeklyordaily. -
<position>is one offirst,second,third,fourth,fifth,sixth,seventh,eighth,ninthortenth. -
<stat>is one ofplayer,wins,losses,games,besttime,lasttime,avgtimeorrank. -
<game>is one of your game nodes undergames:in config.yml.
Placeholders for stats across all game arenas can fetch only the wins, losses, games or rank stats. These placeholders do not include time stats on parkour arenas, which are time-based.
| Placeholder | Retrieved value |
|---|---|
%boost_top_total_first_player% |
Name of the player at the top of the leader board. |
%boost_top_total_first_wins% |
Number of games won by the player at the top of the leader board. |
%boost_top_total_first_losses% |
Number of games lost by the player at the top of the leader board. |
%boost_top_total_first_games% |
Number of games played by the player at the top of the leader board. |
%boost_top_total_first_rank% |
Rank number of the player at the top of the leader board. |
%boost_top_total_second_player% |
Name of the player coming second on the leader board. |
%boost_top_total_second_wins% |
Number of games won by the player coming second on the leader board. |
| ... | ... |
%boost_top_total_tenth_player% |
Name of the player coming tenth on the leader board. |
%boost_top_total_tenth_wins% |
Number of games won by the player coming tenth on the leader board. |
%boost_top_total_tenth_losses% |
Number of games lost by the player coming tenth on the leader board. |
%boost_top_total_tenth_games% |
Number of games played by the player coming tenth on the leader board. |
%boost_top_total_tenth_rank% |
Rank number of the player coming tenth on the leader board. |
| Placeholder | Retrieved value |
|---|---|
%boost_top_monthly_first_player% |
Name of the player at the top of this month's leader board. |
%boost_top_monthly_first_wins% |
Number of games won by the player at the top of this month's leader board. |
%boost_top_monthly_first_losses% |
Number of games lost by the player at the top of this month's leader board. |
%boost_top_monthly_first_games% |
Number of games played by the player at the top of this month's leader board. |
%boost_top_monthly_first_rank% |
Rank number of the player at the top of this month's leader board. |
%boost_top_monthly_second_player% |
Name of the player coming second on this month's leader board. |
%boost_top_monthly_second_wins% |
Number of games won by the player coming second on this month's leader board. |
| ... | ... |
%boost_top_monthly_tenth_player% |
Name of the player coming tenth on this month's leader board. |
%boost_top_monthly_tenth_wins% |
Number of games won by the player coming tenth on this month's leader board. |
%boost_top_monthly_tenth_losses% |
Number of games lost by the player coming tenth on this month's leader board. |
%boost_top_monthly_tenth_games% |
Number of games played by the player coming tenth on this month's leader board. |
%boost_top_monthly_tenth_rank% |
Rank number of the player coming tenth on this month's leader board. |
| Placeholder | Retrieved value |
|---|---|
%boost_top_weekly_first_player% |
Name of the player at the top of this week's leader board. |
%boost_top_weekly_first_wins% |
Number of games won by the player at the top of this week's leader board. |
%boost_top_weekly_first_losses% |
Number of games lost by the player at the top of this week's leader board. |
| ... | ... |
%boost_top_weekly_tenth_losses% |
Number of games lost by the player coming tenth on this week's leader board. |
%boost_top_weekly_tenth_games% |
Number of games played by the player coming tenth on this week's leader board. |
%boost_top_weekly_tenth_rank% |
Rank number of the player coming tenth on this week's leader board. |
| Placeholder | Retrieved value |
|---|---|
%boost_top_daily_first_player% |
Name of the player at the top of today's leader board. |
%boost_top_daily_first_wins% |
Number of games won by the player at the top of today's leader board. |
%boost_top_daily_first_losses% |
Number of games lost by the player at the top of today's leader board. |
| ... | ... |
%boost_top_daily_tenth_losses% |
Number of games lost by the player coming tenth on today's leader board. |
%boost_top_daily_tenth_games% |
Number of games played by the player coming tenth on today's leader board. |
%boost_top_daily_tenth_rank% |
Rank number of the player coming tenth on today's leader board. |
Placeholders for stats on a specific game arena can fetch wins, losses, games, besttime, lasttime, avgtime or rank.
For a PvP or race arena, use placeholders wins, losses, games, or rank.
For a parkour arena, use the time-based stats placeholders besttime, lasttime, avgtime or rank.
For the following examples assume that you have a game node Arena1: under games: in config.yml.
games:
Arena1: <- This value must be used in the placeholder.
name: '&6Arena1'
...
| Placeholder | Retrieved value |
|---|---|
%boost_top_total_first_player_arena1% |
Name of the player at the top of the leader board. |
%boost_top_total_first_wins_arena1% |
Number of games won by the player at the top of the leader board. |
%boost_top_total_first_losses_arena1% |
Number of games lost by the player at the top of the leader board. |
| ... | ... |
%boost_top_total_tenth_losses_arena1% |
Number of games lost by the player coming tenth on the leader board. |
%boost_top_total_tenth_games_arena1% |
Number of games played by the player coming tenth on the leader board. |
%boost_top_total_tenth_rank_arena1% |
Rank number of the player coming tenth on the leader board. |
| Placeholder | Retrieved value |
|---|---|
%boost_top_monthly_first_player_arena1% |
Name of the player at the top of this month's leader board. |
%boost_top_monthly_first_wins_arena1% |
Number of games won by the player at the top of this month's leader board. |
| ... | ... |
%boost_top_monthly_tenth_rank_arena1% |
Rank number of the player coming tenth on this month's leader board. |
| Placeholder | Retrieved value |
|---|---|
%boost_top_weekly_first_player_arena1% |
Name of the player at the top of this week's leader board. |
%boost_top_weekly_first_wins_arena1% |
Number of games won by the player at the top of this week's leader board. |
| ... | ... |
%boost_top_weekly_tenth_rank_arena1% |
Rank number of the player coming tenth on this week's leader board. |
| Placeholder | Retrieved value |
|---|---|
%boost_top_daily_first_player_arena1% |
Name of the player at the top of today's leader board. |
%boost_top_daily_first_wins_arena1% |
Number of games won by the player at the top of today's leader board. |
| ... | ... |
%boost_top_daily_tenth_rank_arena1% |
Rank number of the player coming tenth on today's leader board. |
The player statistics placeholders follow a pattern: %boost_player_<period>_<stat>% or %boost_player_<period>_<stat>_<game>% where the values in < > are each one of the following:
-
<period>is one oftotal,monthly,weeklyordaily. -
<stat>is one ofplayer,wins,losses,gamesorrank. -
<game>is one of your game nodes undergames:in config.yml.
Some combinations will retrieve the same value (e.g. all that fetch the player's name). The full expanded list of player statistics placeholders are as follows:
For the following examples assume that you have a game node Arena1: under games: in config.yml.
games:
Arena1: <- This value must be used in the placeholder.
name: '&6Arena1'
...
| Placeholder | Retrieved value |
|---|---|
%boost_player_total_player% |
Name of the player. |
%boost_player_total_wins% |
Total number of games won by the player. |
%boost_player_total_losses% |
Total number of games lost by the player. |
%boost_player_total_games% |
Total number of games played by the player. |
%boost_player_total_rank% |
Overall rank of the player. |
| Placeholder | Retrieved value |
|---|---|
%boost_player_total_player_arena1% |
Name of the player. |
%boost_player_total_wins_arena1% |
Total number of games won by the player. |
%boost_player_total_losses_arena1% |
Total number of games lost by the player. |
%boost_player_total_games_arena1% |
Total number of games played by the player. |
%boost_player_total_rank_arena1% |
Overall rank of the player. |
| Placeholder | Retrieved value |
|---|---|
%boost_player_monthly_player% |
Name of the player. |
%boost_player_monthly_wins% |
Number of games won by the player this month. |
%boost_player_monthly_losses% |
Number of games lost by the player this month. |
%boost_player_monthly_games% |
Number of games played by the player this month. |
%boost_player_monthly_rank% |
Overall rank of the player this month. |
| Placeholder | Retrieved value |
|---|---|
%boost_player_monthly_player_arena1% |
Name of the player. |
%boost_player_monthly_wins_arena1% |
Number of games won by the player this month. |
%boost_player_monthly_losses_arena1% |
Number of games lost by the player this month. |
%boost_player_monthly_games_arena1% |
Number of games played by the player this month. |
%boost_player_monthly_rank_arena1% |
Overall rank of the player this month. |
| Placeholder | Retrieved value |
|---|---|
%boost_player_weekly_player% |
Name of the player. |
%boost_player_weekly_wins% |
Number of games won by the player this week. |
%boost_player_weekly_losses% |
Number of games lost by the player this week. |
%boost_player_weekly_games% |
Number of games played by the player this week. |
%boost_player_weekly_rank% |
Overall rank of the player this week. |
| Placeholder | Retrieved value |
|---|---|
%boost_player_weekly_player_arena1% |
Name of the player. |
%boost_player_weekly_wins_arena1% |
Number of games won by the player this week. |
%boost_player_weekly_losses_arena1% |
Number of games lost by the player this week. |
%boost_player_weekly_games_arena1% |
Number of games played by the player this week. |
%boost_player_weekly_rank_arena1% |
Overall rank of the player this week. |
| Placeholder | Retrieved value |
|---|---|
%boost_player_daily_player% |
Name of the player. |
%boost_player_daily_wins% |
Number of games won by the player today. |
%boost_player_daily_losses% |
Number of games lost by the player today. |
%boost_player_daily_games% |
Number of games played by the player today. |
%boost_player_daily_rank% |
Overall rank of the player today. |
| Placeholder | Retrieved value |
|---|---|
%boost_player_daily_player_arena1% |
Name of the player. |
%boost_player_daily_wins_arena1% |
Number of games won by the player today. |
%boost_player_daily_losses_arena1% |
Number of games lost by the player today. |
%boost_player_daily_games_arena1% |
Number of games played by the player today. |
%boost_player_daily_rank_arena1% |
Overall rank of the player today. |
The game placeholders follow a pattern: %boost_game_<game>_<parameter>% where the values in < > are each one of the following:
-
<game>is one of your game nodes undergames:in config.yml. -
<parameter>is one ofplayers,playing,min,max,timeorstatus.
For the following examples assume that you have a game node Arena1: under games: in config.yml.
games:
Arena1: <- This value must be used in the placeholder.
name: '&6Arena1'
...
| Placeholder | Retrieved value |
|---|---|
%boost_game_arena1_players% |
Total players in the game (queuing, playing, spectating). |
%boost_game_arena1_playing% |
Active players in the game (i.e. playing but have not lost). |
%boost_game_arena1_min% |
Minimum number of players required for the game to start. |
%boost_game_arena1_max% |
Maximum number of players allowed in the game. |
%boost_game_arena1_time% |
Remaining queuing time before the game starts. Returns an empty string if the game is not counting down to start. |
%boost_game_arena1_status% |
Current status of the game. Returns one of the following values: QUEUING, RUNNING or STOPPED. |