Skip to Content
MineDuels

Lobby items

The hotbar items players get in the lobby, per state: queue, party, tournament and post-match.

Folder: plugins/MineDuels/guis/lobby-items/. Reload: /md reload.

The hotbar of a player in the lobby is a set of items. Which set they get depends on what they are doing. Right clicking an item runs its action.

These files only control the hotbar. They are not the same as cross-server.role (lobby or game) in database.yml. See the roles glossary.

Sets

FileSet (state)Given when
lobby.ymllobbyIdle in the lobby
queue.ymlqueueWaiting in a queue
party-leader.ymlparty-leaderLeading a party
party-member.ymlparty-memberIn a party, not leading
party-queue.ymlparty-queueThe party is queued
tournament.ymltournamentIn a tournament
post-match.ymlpost-matchA match just ended and the player stays in the arena (post-match in config.yml)

A set that is missing falls back to another: queue, party-leader, party-member and tournament fall back to lobby, and party-queue falls back to queue. The post-match set falls back to the bundled one. Old files with items directly in the file are read as the lobby set, with a warning.

An item

unranked:
  slot: 0
  material: IRON_SWORD
  name: "<green>Unranked <gray>(right click)"
  lore: ["<gray>Fight for fun"]
  glow: false
  action: queue-unranked
KeyMeaning
slotHotbar slot, 0 to 8
materialA Minecraft material. An unknown one becomes STONE and is reported
name, loreMiniMessage. Placeholders work. See Placeholders
amountStack size, default 1
glowEnchant glint
actionWhat it does. See the table below
permissionThe permission needed to get the item
no-permissionhide to leave the item out, or an item section that replaces some fields for players without the permission
copy-fromCopy another item, for example copy-from: lobby.settings, and then change what you want

Actions

ActionDoes
queue-unranked, queue-ranked, queue-unranked-2v2, queue-ranked-2v2Opens that queue's kit menu
leave-queueLeaves the queue
partyOpens the party menu, or creates a party
party-info, party-members, party-games, party-duelParty menus
party-queue, party-queue-rankedQueues the party for 2v2
party-leave, party-disbandLeaves or disbands the party
stats, leaderboard, historyOpens the stats menus
kit-editorOpens the kit editor
tournament, tournament-leaveJoins or follows a tournament, or leaves it
serversOpens the server selector (network)
settingsOpens /settings
play-againAfter a match: queues the same kit and queue again. After a duel it asks for a rematch
requeue-allAfter a match: rejoins every queue the player waited in
leave-to-lobbyAfter a match: goes to the lobby now
menu:<name>Opens a custom menu from guis/custom/<name>.yml

Examples

Move the leaderboard item to slot 7 and hide the tournament item from players without a permission:

leaderboard:
  slot: 7
  material: NETHER_STAR
  name: "<aqua>Leaderboards <gray>(right click)"
  action: leaderboard
tournament:
  slot: 4
  material: GOLDEN_HELMET
  name: "<gold>Tournament <gray>(right click)"
  action: tournament
  permission: myserver.tournaments
  no-permission: hide

Add an item that opens a custom menu shop.yml:

shop:
  slot: 6
  material: EMERALD
  name: "<green>Shop <gray>(right click)"
  action: menu:shop

Show the queue the player waits in, in the queue set:

leave:
  slot: 0
  material: RED_DYE
  name: "<red>Leave the queue <gray>(right click)"
  lore: ["<gray>Waiting in <white>%mode%</white> <yellow>%kit_display%"]
  action: leave-queue

Keep the same settings and leaderboard buttons in every set with copy-from:

settings:
  copy-from: lobby.settings

Where the items are given

Lobby items are given in the lobby world, not in a match, and not in a world where MineDuels is off. See Per-world rules. A player in creative mode with mineduels.build can build in the lobby. See Spawn for the lobby command.

Related: GUIs, Queue menus, Parties.

On this page