Skip to Content
MineDuels
Configuration

tab.yml

Tab list header and footer, names, groups, sorting, animations and players from other servers.

Path: plugins/MineDuels/tab.yml
Reload: yes (/md reload)

The tab list is the list of players shown when a player holds Tab. This file sets its header, its footer, how each name looks and in which order players are listed. Each player sees the layout of their own state: in the lobby, in a party, in a queue, in a match, watching a match or in the kit editor.


What it supports

  • A header, a footer and a name format for every state: lobby, party, queue, match, spectating and editor.
  • Other layouts for one kit (kits), one game mode (modes) or one match type (types), for example a different header in a bed match.
  • A different lobby layout for chosen worlds (lobby-worlds).
  • Groups that give a name a prefix and a suffix by permission, state or world, and sort the list by group.
  • Animated text with %animation:name%, from this file or from animations.yml.
  • Hiding players who are not in your match (match-only-players).
  • Players from the other servers of the network (network).
  • Placeholders: Placeholders, plus PlaceholderAPI placeholders when it is installed.

What it does not do

  • It does not change the name above a player's head. Use nametags.yml for that.
  • It cannot give one player a header of their own. A layout belongs to a state, kit, mode, type or world.
  • It does not list players of other servers without the packetevents plugin (see Players from other servers).
  • It does not work next to another tab list plugin that also sets the header, footer or names. Turn one of the two off, or limit this file with only-worlds and except-worlds.

Top-level keys

KeyDefaultMeaning
enabledtrueTurns the whole file on or off.
update-ticks20How often placeholders are worked out again (1 to 1200 ticks, 20 is one second). Animations still move faster than this.
namestrueAlso set each player's name in the list. With false only the header and footer change.
match-only-playerstrueDuring a match the list shows only the players of that match.
only-worlds[]Worlds where the file applies. Empty means every world.
except-worlds[]Worlds where it never applies.
lobby-worlds{}World name mapped to the section used there instead of lobby (see the example below).
sort-by-grouptrueSort the list by group.
group-order[]Group names, top to bottom. Empty uses the order of groups. LuckPerms group names work too.

Sections and layouts

Every section has the same three keys:

lobby:
  header:
    - ""
    - "%animation:title%"
    - "<gray>Online: <white>%online%"
  footer:
    - "<gray>In queue: <white>%queued%  <dark_gray>|  <gray>Playing: <white>%playing%"
  name: "%prefix%<white>%player%%suffix%"

header and footer are lists of lines in MiniMessage (legacy & codes work too). name is the format of a player's name. An empty name keeps the name as it is.

SectionUsed when the player
lobbystands in the lobby and has no other state
partyis in a party in the lobby
queuewaits in one or more queues
matchplays a match
spectatingwatches a match
editoredits a kit

The first line of lobby is empty on purpose: a blank line gives the header some space.


Examples

1. A plain lobby list

lobby:
  header:
    - "<gold><bold>MY SERVER"
    - "<gray>Online: <white>%online%"
  footer:
    - "<gray>Ping: <white>%ping%ms"
  name: "%prefix%<white>%player%"

2. Ranks as prefixes, sorted

The first group that fits the player is used. Put the strongest first.

sort-by-group: true
group-order: [owner, admin, vip, default]

groups:
  owner:
    permission: mineduels.rank.owner
    prefix: "<dark_red>[Owner] "
    suffix: ""
    states: []
    worlds: []
  admin:
    permission: mineduels.admin
    prefix: "<red>[Admin] "
    suffix: ""
    states: []
    worlds: []
  vip:
    permission: mineduels.rank.vip
    prefix: "<gold>[VIP] "
    suffix: ""
    states: []
    worlds: []
  default:
    permission: ""
    prefix: "<gray>"
    suffix: ""
    states: []
    worlds: []

A group with an empty permission fits everyone, so keep it last. states limits a group to MineDuels states such as match or spectating. An empty list means any state.

3. Players in a match and spectators

groups:
  spectators:
    permission: ""
    states: [spectating]
    prefix: "<gray>[Spec] "
    order: 0
  players:
    permission: ""
    states: [match]
    prefix: "<red>[⚔] "

4. One layout for one game mode

modes:
  boxing:
    match:
      header:
        - "<gradient:#ff5f6d:#ffc371><bold>BOXING</bold></gradient>"
        - "<gray>Hits: <green>%hits% <dark_gray>- <red>%enemy_hits%"
      footer:
        - "<gray>Opponent: <red>%opponent%  <dark_gray>|  <gray>Time: <white>%time%"
      name: "%prefix%<white>%player%"

modes is keyed by game mode, types by match type (for example party-ffa), and kits by kit name. Inside, use the section you want to replace (match or spectating). A kit layout is used before a mode layout, and that before a type layout.

5. A different layout in one world

lobby-worlds:
  hub_pvp: pvp_lobby

pvp_lobby:
  header:
    - "<red><bold>PVP HUB"
  footer:
    - "<gray>Fights: <white>%playing%"
  name: "%prefix%<white>%player%"

The value is the name of another section in the same file.

6. An animated title

animations:
  title:
    interval: 4
    frames:
      - "<gradient:#ff5f6d:#ffc371:0><bold>DUELS</bold></gradient>"
      - "<gradient:#ff5f6d:#ffc371:0.5><bold>DUELS</bold></gradient>"

lobby:
  header:
    - "%animation:title%"

interval is in ticks. Use %animation:name% in any header, footer or name line. Animations defined in animations.yml work the same way.

7. Only the match in the list

match-only-players: true

While a player is in a match, the list shows only the players of that match. Everyone comes back when the match ends.

8. Turn the tab list off in the creative world

except-worlds: [creative]

Players from other servers

On a network, the tab list can also show players who are online on another server, for example a player who is in a duel on the duel server while you are in the lobby.

network:
  enabled: true
  format: "<dark_gray>[<gray>%server%</gray>]</dark_gray> <white>%player%"
  server-tags:
    lobby-1: "Lobby"
    game-1: "Duel"
  max-entries: 200
KeyDefaultMeaning
enabledtrueShow players of other servers, and tell the other servers who is online here.
formatsee aboveThe name of a remote player. %server% is the tag, %player% is the name.
server-tags{}A short label per server name (the name in velocity.toml). A server without a tag shows its own name.
max-entries200The most remote players listed (0 to 1000).

Requirements and limits:

  • Cross-server must be enabled and Redis reachable. Without it, the list shows this server only.
  • The packetevents plugin must be installed. Without it the list shows this server only.
  • Remote players are shown with their skin head and the format above. They are not real players on this server, so you cannot click or target them.
  • The list follows the network within about 10 seconds. A server that stops disappears from the list at the same pace.
  • %online% in a header or footer is already the number of players on the whole network. %online_local% is the number on this server.

Common mistakes

  • Two tab list plugins. Only one should set the header, footer and names.
  • A group with an empty permission first. It fits everyone and the groups below it are never used.
  • Missing lobby section. Players in the lobby then get an empty header and footer. The server logs a warning.
  • A lobby-worlds entry that names a section that does not exist. The lobby section is used there and the server logs a warning.

Related pages: Placeholders, Scoreboard, Name tags, Tab list, Cross-server.

On this page