-
-
Notifications
You must be signed in to change notification settings - Fork 47
Plugin Message API
Velocitab provides a plugin message API, to let you do things with Velocitab from your backend servers.
Note: This feature requires sending Update Teams packets.
send_scoreboard_packetsmust be enabled in theconfig.ymlfile for this to work. More details...
To use the Velocitab plugin message API, you must first turn it on and ensure the following:
- That
enable_plugin_message_apiandsend_scoreboard_packetsis set totruein your Velocitab config file - That
bungee-plugin-message-channelis set totruein your Velocity proxy config TOML (see Velocity config reference).
To change a player's username in the TAB list, you can send a plugin message on the channel velocitab:update_custom_name with a customName string, where customName is the new desired display name.
Example β Changing player's username in the TAB List
player.sendPluginMessage(plugin, "velocitab:update_custom_name", "Steve".getBytes());To change player's nametag color, you can send a plugin message on the channel velocitab:update_team_color with teamColor string, where teamColor is the new desired name tag color.
You can only use legacy color codes, for example a for green, b for aqua, etc. Please note this option overrides the color of the glow potion effect if set. Check here for a list of supported colors (The value under the "Code" header on the table is what you need).
Example β Changing player's team color
player.sendPluginMessage(plugin, "velocitab:update_team_color", "a".getBytes());| This documentation is available via william278.net |
|---|
- π Setup
- π Config File
- π₯οΈ Commands
- π₯ Server Groups
- π¨ Formatting
- π Nametags
- π Sorting
- βοΈ Placeholders
- π Relational Placeholders
- π Conditional Placeholders
- π Placeholders Replacements
- β¨ Animations
- πΌοΈ Custom Logos
- π Server Links
- π¦ API
- π API Examples
- π Plugin Message API
- π» GitHub
- π Download
- π¬ Discord Support