Skip to Content
MineDuels

Scoreboard

The sidebar: one layout per state, per kit, mode and type, per world, with placeholders and animations.

File: plugins/MineDuels/scoreboard.yml. Reload: /md reload.

MineDuels shows a sidebar scoreboard that changes with what the player is doing. Each state has its own title and lines.

States

SectionShown when
lobbyThe player is in the lobby, not queued and not in a match
queueThe player is waiting in a queue
matchThe player is fighting
spectatingThe player is watching a match

A state that is missing from the file uses the lobby section. A missing lobby section gives an empty sidebar and a warning in the console.

Settings

enabled: true
update-ticks: 20
only-worlds: []
except-worlds: []
lobby-worlds: {}
KeyDefaultMeaning
enabledtrueTurns the sidebar off for everyone when false
update-ticks20How often lines refresh, 1 to 1200 ticks. 20 is once a second
only-worldsemptyWhen not empty, the sidebar is shown only in these worlds
except-worldsemptyWorlds where it is never shown
lobby-worldsemptyA different lobby layout for a world. See below

A section

lobby:
  title: "<gradient:#ff5f6d:#ffc371><bold>Duels</bold></gradient>"
  lines:
    - "<dark_gray><st>                    </st>"
    - "<gray>Online: <white>%online%"
    - "<gray>ELO: <yellow>%elo%"
    - ""
    - "<gray>In queue: <white>%queued%"
    - "<gray>Playing: <white>%playing%"
    - "<dark_gray><st>                    </st>"
  • The title and every line are MiniMessage text with %placeholders%.
  • A sidebar has at most 15 lines. Lines after the 15th are dropped with a warning.
  • A line that is empty ("") is a blank line.
  • Placeholders are filled in on every refresh. See Placeholders for the full list.
  • %animation:name% inserts an animated text. Animations are defined in tab.yml or animations.yml. See Tab list.

The default sections use these placeholders:

SectionPlaceholders
lobby%online%, %elo%, %queued%, %playing%
queue%kit%, %elo%, %time% (time waiting), %queued%
match%kit%, %opponent%, %elo%, %time%
spectating%players%, %kit%, %time%

Different layout per kit, mode or type

In match and spectating, the most specific section that exists is used: the kit, then the game mode, then the match type. Without one, the plain section is used.

kits:
  nodebuff:
    match:
      title: "<red><bold>NoDebuff</bold>"
      lines:
        - "<gray>Opponent: <red>%opponent%"
        - "<gray>Time: <white>%time%"
modes:
  bridge:
    match: { ... }
    spectating: { ... }
types:
  party-ffa:
    match: { ... }
ScopeKeyNames
kits.<kit>A kit nameYour kits
modes.<mode>A game modetnt-tag, beds, bridge, boxing
types.<type>A match typeduel, queue, party-split, party-ffa, party-teams, party-duel, red-rover, tournament. See Match types

Each scope can have match and spectating. An unknown mode, type or state is reported on reload and skipped.

The defaults already include layouts for the modes and party types:

SectionExtra placeholders
modes.tnt-tag.match%tag_holder%, %tag_seconds%, %alive%, %round%, %score%
modes.beds.match%bed%, %enemy_bed%, %lives%, %team_alive%, %enemy_alive%, %round%, %score%
modes.bridge.match%goals%, %enemy_goals%, %target%, %opponent%
modes.boxing.match%hits%, %enemy_hits%, %target%, %opponent%
types.party-ffa.match%alive%, %round%, %score%
types.party-split.match, types.party-teams.match%team_alive%, %enemy_alive%, %round%, %score%

A different lobby per world

lobby-worlds maps a world to the name of another section in the same file:

lobby-worlds:
  event_world: event-lobby

event-lobby:
  title: "<gold><bold>Event</bold>"
  lines:
    - "<gray>Online: <white>%online%"
    - "<yellow>Tournament tonight"

Players in event_world see event-lobby instead of lobby. The world name is not case sensitive. A name that points to no section is reported and the lobby section is used.

Only some worlds

only-worlds: [lobby, mineduels_arenas]

Use except-worlds for the opposite. To switch the whole of MineDuels off in a world, see Per-world rules.

Another scoreboard plugin

Set enabled: false here when another plugin draws the sidebar, and use the %mineduels_...% placeholders in that plugin. See PlaceholderAPI.

Related: Tab list, Nametags, Placeholders.

On this page