feat: Added a /tab command to display the list of online players

This commit is contained in:
Anon 2026-04-04 16:21:06 +02:00 committed by GitHub
commit 76c3403700
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
12 changed files with 729 additions and 2 deletions

View file

@ -1183,6 +1183,40 @@ Coordinate = { x = 145, y = 64, z = 2045 }
- **Default:** `30`
### Console TabList section
- **Section header:** `Console.TabList`
- **Description:**
Settings for the `/tab` command and the live tab overlay in TUI mode.
<details>
<summary>Tab list settings</summary>
#### `ShowTeams`
- **Description:**
Show a separate team column in `/tab` output.
This is disabled by default so `/tab` stays closer to the in-game player list and keeps the output compact. Team formatting still applies to player names even when the extra column is hidden.
When enabled, MCC shows the team display name when the server provides one. If the server only sends an internal team identifier, MCC hides that noise instead of printing a raw UUID-like value.
- **Type:** `boolean`
- **Default:** `false`
- **Example:**
```toml
[Console.TabList]
ShowTeams = true
```
</details>
#### `Max_Displayed_Suggestions`
- **Description:**

View file

@ -879,6 +879,32 @@ In scripts and remote control, no slash is needed to perform the command, eg. `q
</details>
<details>
<summary><code>tab</code></summary>
- **Description:**
Show the current player tab list in a more detailed format than `/list`.
In the classic console, `/tab` prints a colored table with ping and player names. Team prefixes, suffixes, and display names are applied when the server sends them.
In TUI mode, `/tab` opens a live overlay that refreshes automatically while it is visible. Press `Esc` to close it.
If you want a separate team column, enable [Console.TabList.ShowTeams](configuration.md#showteams).
- **Usage:**
```
/tab
```
- **Notes:**
- `/tab` uses the tab list information sent by the server, so players hidden from the server tab list will not appear here.
- The TUI overlay follows the live player list, so joins, leaves, ping updates, and scoreboard team updates show up without reopening it.
</details>
<details>
<summary><code>set</code></summary>