Custom Placeholders
Custom placeholder uses JavaScript to evaluate your placeholder script. There are 3 default global variables you can use in your script.
player
this returns the player (the tablist viewer). Example usage:
player:
displayWorldAndName: |-
player.getWorld().getName() + ' - ' + player.getName();
For bungeecord custom placeholders, see net.md_5.bungee.api.connection.ProxiedPlayer
server
this returns the server instance
For bungeecord custom placeholders, see net.md_5.bungee.api.ProxyServer
param
this is the placeholder parameter.
Example, if you use {dummy_another_xd:lolol}
then the parameter is lolol
Last updated
Was this helpful?