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
| File | Set (state) | Given when |
|---|---|---|
lobby.yml | lobby | Idle in the lobby |
queue.yml | queue | Waiting in a queue |
party-leader.yml | party-leader | Leading a party |
party-member.yml | party-member | In a party, not leading |
party-queue.yml | party-queue | The party is queued |
tournament.yml | tournament | In a tournament |
post-match.yml | post-match | A 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| Key | Meaning |
|---|---|
slot | Hotbar slot, 0 to 8 |
material | A Minecraft material. An unknown one becomes STONE and is reported |
name, lore | MiniMessage. Placeholders work. See Placeholders |
amount | Stack size, default 1 |
glow | Enchant glint |
action | What it does. See the table below |
permission | The permission needed to get the item |
no-permission | hide to leave the item out, or an item section that replaces some fields for players without the permission |
copy-from | Copy another item, for example copy-from: lobby.settings, and then change what you want |
Actions
| Action | Does |
|---|---|
queue-unranked, queue-ranked, queue-unranked-2v2, queue-ranked-2v2 | Opens that queue's kit menu |
leave-queue | Leaves the queue |
party | Opens the party menu, or creates a party |
party-info, party-members, party-games, party-duel | Party menus |
party-queue, party-queue-ranked | Queues the party for 2v2 |
party-leave, party-disband | Leaves or disbands the party |
stats, leaderboard, history | Opens the stats menus |
kit-editor | Opens the kit editor |
tournament, tournament-leave | Joins or follows a tournament, or leaves it |
servers | Opens the server selector (network) |
settings | Opens /settings |
play-again | After a match: queues the same kit and queue again. After a duel it asks for a rematch |
requeue-all | After a match: rejoins every queue the player waited in |
leave-to-lobby | After 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: hideAdd an item that opens a custom menu shop.yml:
shop:
slot: 6
material: EMERALD
name: "<green>Shop <gray>(right click)"
action: menu:shopShow 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-queueKeep the same settings and leaderboard buttons in every set with copy-from:
settings:
copy-from: lobby.settingsWhere 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.