-
-
Notifications
You must be signed in to change notification settings - Fork 29
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_packets
must be enabled in theconfig.yml
file 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_api
andsend_scoreboard_packets
is set totrue
in your Velocitab config file - That
bungee-plugin-message-channel
is set totrue
in 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
- 💻 GitHub
- 📂 Download
- 💬 Discord Support