Queue menus
The four queue menus in guis/queue/: kit items, slots, lore, placeholders and leaderboard lines.
Folder: plugins/MineDuels/guis/queue/. Reload: /md reload.
A queue menu lists the kits a player can queue for. There is one file for each queue:
| File | Queue |
|---|---|
unranked.yml | Unranked 1v1 |
ranked.yml | Ranked 1v1 |
unranked-2v2.yml | Unranked 2v2 |
ranked-2v2.yml | Ranked 2v2 |
The menu opens from the lobby hotbar and from /queue.
A menu file
title: "<dark_gray>Unranked <gray>» pick a kit"
kits: {}
show-other-kits: true
kit-item:
name: "<yellow>%kit_display%"
lore:
- "<gray>Waiting: <white>%in_queue%"
- "<gray>Fighting: <white>%in_match%"
- ""
- "<green>Click to queue"
glow: false
queued:
name: "<green>%kit_display% <gray>(queued)"
lore:
- "<green>✔ You are in this queue"
- "<gray>Waiting: <white>%time%"
- "<gray>In queue: <white>%queued%"
- ""
- "<red>Click to leave"
glow: true| Key | Meaning |
|---|---|
title | The inventory title |
kits | Which kits go in which slots. Empty: placed in order |
show-other-kits | Also show kits that are not listed under kits |
kit-item | The look of a kit the player is not queued for |
queued | The look of a kit the player waits in |
| rows, slots, filler | As in GUIs |
The kit's own material (icon: in the kit file) is the item. name and lore here replace its text.
Placeholders
| Placeholder | Value |
|---|---|
%kit%, %kit_display% | The kit name and its display name |
%in_queue% | Players waiting in this queue. On a network: the global queue |
%in_match% | Players fighting in this kit. On a network: all servers |
%time% | How long the player has waited (in the queued item) |
%queued% | Players in the queue (in the queued item) |
%playing% | Matches or players playing the kit |
%elo%, %streak%, %best_streak% | The viewer's own stats in the kit |
%wins%, %losses%, %games%, %winrate% | The viewer's results in the kit |
%ranked_games%, %ranked_winrate% | The viewer's ranked games and win rate in the kit |
%rank%, %position% | The viewer's rank and place on the kit's board |
%placement_left%, %placed% | Placement games left, and whether the player is placed |
%player% | The viewer's name |
MineDuels fills %kit% before PlaceholderAPI runs, so one lore line works for every kit item.
Leaderboard lines in the lore
With PlaceholderAPI the lore can show the top players of each kit:
kit-item:
lore:
- "<gray>Waiting: <white>%in_queue%"
- "<gold>1. <white>%mineduels_lb_%kit%_1_streak_name% <gray>%mineduels_lb_%kit%_1_streak%"
- "<gray>Your streak: <white>%streak% <dark_gray>(best %best_streak%)"See Queue customization and Placeholders for the leaderboard placeholder names.
Conditional lines
Show a line only when it applies:
lore:
- "[if %ranked_games% = 0] <red>No ranked games yet."
- "[else] <gray>Rank: %rank% (#%position%)"
- "[else] <gray>Win rate: %ranked_winrate%"See Conditional lore.
Multi-queue
With queue.multi-queue.enabled in matchmaking.yml, a player can wait in several queues. Clicking a kit they already wait in leaves it (the queued item). keep-menu-open keeps the menu open after a click. See Matchmaking.
On a network
%in_queue% and %in_match% count every server. See Cross-Server operations.
Related: Lobby items, Queue signs, Icons.