From 3064aad4f3f3d9d4702a585907d285141fec6d8c Mon Sep 17 00:00:00 2001 From: AlexDev_ <56083016+alexdev03@users.noreply.github.com> Date: Tue, 27 Feb 2024 23:04:49 +0100 Subject: [PATCH] docs: correct Plugin Message API docs (#169) --- docs/Plugin-Message-API-Examples.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/Plugin-Message-API-Examples.md b/docs/Plugin-Message-API-Examples.md index f3c4d73..d8cf1a8 100644 --- a/docs/Plugin-Message-API-Examples.md +++ b/docs/Plugin-Message-API-Examples.md @@ -3,7 +3,7 @@ Velocitab provides a plugin message API. ## API Requests from Backend Plugins ### 1 Changing player's username in the TAB List -To change a player's username in the tablist, you can send a plugin message with the channel `velocitab:main` and as data `UPDATE_CUSTOM_NAME:::customName`. +To change a player's username in the tablist, you can send a plugin message with the channel `velocitab:update_custom_name` and as data `customName`. Remember to replace `customName` with the desired name.
Example — Changing player's username in the TAB List @@ -14,7 +14,7 @@ player.sendPluginMessage(plugin, "velocitab:update_custom_name", "Steve".getByte
### 2 Update team color -To change a player's team color in the TAB List, you can send a plugin message with the channel `velocitab:main` and as data `UPDATE_TEAM_COLOR:::teamColor`. +To change a player's team color in the TAB List, you can send a plugin message with the channel `velocitab:update_team_color` and as data `teamColor`. You can only use legacy color codes, for example `a` for green, `b` for aqua, etc. This option overrides the glow effect if set @@ -24,4 +24,4 @@ This option overrides the glow effect if set ```java player.sendPluginMessage(plugin, "velocitab:update_team_color", "a".getBytes()); ``` - \ No newline at end of file +