-
Notifications
You must be signed in to change notification settings - Fork 0
Tab
Tab or the tablist is the menu you see when pressing the 'TAB' key (or whatever it's doubt to). By default this shows a list of all the players connected to the server with a connection visual on the right. On a network with multiple servers you will only see the players on the server you are currently connected to, this means that a custom implementation is necessary for multi-server networks.
Tab is managed through the proxy, this makes it easier to keep track of the number of players, and doesn't require each server to keep track of who is currently in the tablist. All player entries are hidden by default, this is done using a listener on the server and setting their entry to listed=false.
When a player connects to the network the proxy will add a fake-player entry identified by the player name. The display name is composed by the role prefix, the player name and formatting is applied to the player name for a number of different scenarios.
- Italic if the player is afk.
- Strikethrough if the player is in focus mode.
- Red if the player is muted globally, or muted by the player viewing the tablist.
The connection is also updated every 30 seconds based on the player's connection in milliseconds to the proxy.
The tablist is unique per player and will update dynamically if something changes that should require the player to display differently.