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:
See more player functions in here org.bukkit.entity.Player
For bungeecord custom placeholders, see net.md_5.bungee.api.connection.ProxiedPlayer
server
this returns the server instance
See more server functions in here org.bukkit.Server
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