Placeholders¶
AdvancedServerList provides a set of pre-made placeholders using the ${<identifier> <placeholder>}
format adobted from BungeeTabListPlus.
It also has built-in PlaceholderAPI support for Spigot and Paper Servers and since v2 can even allow you to add your own placeholders by using its API.
Built-in Placeholders¶
The following placeholders are available in AdvancedServerList itself. Please note that not all placeholders are available on all platforms.
Player¶
These placeholders use the player who pinged the server, to return values. They may require the player to be cached in order to work.
Placeholder | Description | Platforms | Cached Player required?1 |
---|---|---|---|
${player name} |
The name of the player. | All | Yes2 |
${player protocol} |
The protocol version of the player. | All | No |
${player uuid} |
The UUID of the player. | All | Yes3 |
${player version} |
The protocol version of the player as readable MC version. | Velocity | No |
${player hasPlayedBefore} |
Boolean for whether the player has played on the server before. | Paper | Yes |
${player isBanned} |
Boolean for whether the player has been banned from the server. | Paper | Yes |
${player isWhitelisted} |
Boolean for whether the player is whitelisted on the server. | Paper | Yes |
Server¶
These placeholders use values given by the server/proxy AdvancedServerList runs on.
Placeholder | Description | Platforms |
---|---|---|
${server playersOnline} |
The number of players online on this proxy/server.4 | All |
${server playersMax} |
The total number of players that can join this server.5 | All |
${server host} |
The domain/IP the player pinged.6 | All |
${server whitelistEnabled} |
Whether the whitelist is enabled or not. | Paper |
Proxy¶
These placeholders are only available on the BungeeCord and Velocity versions of AdvancedServerList.
Note
Servers are pinged every 10 seconds by the plugin and cached for that time period.
Placeholders | Description | Default7 |
---|---|---|
${proxy status <name>} |
Returns online or offline based on the Server's availability. |
offline |
${proxy motd <name>} |
Returns the Server's MOTD as MiniMessage String. | none |
${proxy players <name>} |
Returns the number of online Players on the Server. | 0 |
${proxy maxPlayers <name>} |
Returns the max number of Players allowed to join the Server. | 0 |
Maintenance¶
These placeholders require the Maintenance plugin to work.
Placeholder | Description |
---|---|
${maintenance maintenanceEnabled} |
Returns whether the Global maintenance mode is enabled or not. |
PlaceholderAPI¶
Please visit the PlaceholderAPI page for how AdvancedServerList works with PlaceholderAPI.
Custom Placeholders¶
Since version 2 of AdvancedServerList are developers able to provide their own placeholders to be used in a server list profile.
The format follows the same one as the built-in placeholders, meaning it is ${<identifier> <placeholder>}
.
If you're a developer and want to integrate your own placeholders into AdvancedServerList, read about it here.
-
Whether this placeholder requires the player to have joined before while AdvancedServerList was running.
WhendisableCache
is enabled will these placeholders not work. ↩ -
Will default to whatever name has been provided in the
unknownPlayer -> name
option of the config.yml, when the player isn't cached yet. ↩ -
Will default to whatever name has been provided in the
unknownPlayer -> uuid
option of the config.yml, when the player isn't cached yet. ↩ -
A comma-separated list of world (On Paper) or Server (On BungeeCord/Velocity) names can be provided to display the added numbers of players in these worlds/servers.
Example:${server playersOnline lobby1,lobby2}
will display the collective numbers of players in the serverslobby1
andlobby2
.
Using the onlinePlayers'amount
option will modify the output of this placeholder, except when used incondition
. ↩ -
Using either the extraPlayers'
amount
or maxPlayers'amount
option will make this placeholder return the modified max players count.
Only exception to this rule is when the placeholder is used in thecondition
option in which case it returns the actual max player count of the proxy/server. ↩ -
An optional server name can be provided to display the IP/Domain associated with that server. This only works on BungeeCord or Velocity.
Example:${server host survival}
would display the IP/Domain associated with thesurvival
server. ↩ -
The default value returned, should the Server or parts of it not be available. ↩