forked from Upstream/Velocitab
docs: correct Plugin Message API docs (#169)
This commit is contained in:
parent
39aaae2f30
commit
3064aad4f3
@ -3,7 +3,7 @@ Velocitab provides a plugin message API.
|
|||||||
## API Requests from Backend Plugins
|
## API Requests from Backend Plugins
|
||||||
|
|
||||||
### 1 Changing player's username in the TAB List
|
### 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.
|
Remember to replace `customName` with the desired name.
|
||||||
<details>
|
<details>
|
||||||
<summary>Example — Changing player's username in the TAB List</summary>
|
<summary>Example — Changing player's username in the TAB List</summary>
|
||||||
@ -14,7 +14,7 @@ player.sendPluginMessage(plugin, "velocitab:update_custom_name", "Steve".getByte
|
|||||||
</details>
|
</details>
|
||||||
|
|
||||||
### 2 Update team color
|
### 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.
|
You can only use legacy color codes, for example `a` for green, `b` for aqua, etc.
|
||||||
This option overrides the glow effect if set
|
This option overrides the glow effect if set
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user