Menus
How the menu files work, slot numbers and ranges, and every item and token in each of the ten menus.
Every menu the plugin opens is a file in menus/. Titles, sizes, filler, items, names, lore and slots can all be changed, so the menus can match the rest of your server. Apply changes with /duel admin reload.
How a menu file works
# Menu title, tokens: <page> <pages>
title: "<dark_gray>Choose a kit <gray>(<page>/<pages>)"
# Number of rows, 1 to 6
rows: 6
# Slots kits are placed in, in order
content-slots:
- "10-16"
- "19-25"
- "28-34"
filler:
# Fill empty slots with the item below
enabled: true
# Filler item material
material: GRAY_STAINED_GLASS_PANE
# Filler item name
name: " "
items:
previous:
# Slot of the previous page button
slot: 45
# Item material
material: ARROW
# Item name
name: "<yellow>Previous page"
# Item lore
lore: []| Key | What it does |
|---|---|
title | Menu title in MiniMessage format. Each menu lists its tokens in the comment above it |
rows | Rows from 1 to 6, 9 slots each |
filler | The item used for every empty slot. enabled: false leaves them empty |
content-slots | For paged menus, the slots entries are placed in, in order. The number of slots is the number of entries per page |
items.<id>.slot | Where a button goes. Use slots: with a list to place it in several slots |
items.<id>.material | The item material |
items.<id>.amount | Optional stack size |
items.<id>.name | Item name, MiniMessage format |
items.<id>.lore | Lore lines, MiniMessage format. [] for none |
items.<id>.glow | Optional, true makes the item shine |
Slot numbers
- Slot 0 is the top left. Numbers go left to right, row by row, so the first slot of row two is 9 and the last slot of a six row menu is 53.
- A range like
"10-16"includes both ends. - Slots outside the menu size are ignored.
- If an item's section is missing, the plugin shows a barrier named "Missing menu item" so you can spot it.
Tokens such as <player> are filled in by the plugin. You can move them around or remove them, but a token only works in the menu that lists it.
The menus
setup.yml
The shared setup menu. Title tokens <player1> <player2>, 5 rows.
| Item | Slot | Tokens |
|---|---|---|
timer | 4 | <time> <player1> <player2> |
mode-ranked, mode-unranked | 11 | |
mode-locked | 11 | <reason> |
kit | 13 | <kit>. The material is the chosen kit's icon, CHEST when none |
kit-own-gear | 13 | <kit>. Shown instead of kit while Own gear is chosen |
gear-kit, gear-own | 20 | <rule>, what happens to the loser's items |
wager-none | 15 | |
wager-set | 15 | <amount> <total> <currency> |
wager-pending | 15 | <amount> <currency> <proposer> <target> <time> |
location-random | 22 | Shown when Random arena is chosen |
location-arena | 22 | <arena>, the chosen arena's display name |
location-here | 22 | <max>, the fight-here.max-distance value |
confirm-waiting, confirm-ready | set by confirm-player1-slot: 29 and confirm-player2-slot: 33 | <player> |
confirm-waiting-drop, confirm-ready-drop | the same confirm slots | <player>. Used for own gear duels while own-gear.loser-items is DROP |
cancel | 31 |
setup.yml is at menus-version: 4. The three location- items (1.0.0-6), the mode-queue-only item (1.0.0-8) and the own gear items (1.0.0) are added to your file on the next start, your own edits stay as they are.
mode-queue-only sits in slot 11 and replaces the mode buttons while queue.ranked-challenges is off. Its lore token <queue> is the ranked queue command.
arena-select.yml
The location menu, opened from the location button in the setup menu. Title tokens <page> <pages>, 6 rows, content-slots for the arenas (19-25, 28-34, 37-43).
| Item | Slot | Tokens |
|---|---|---|
random, random-selected | 11 | Random arena, and the same button when it is the current choice. random-selected has glow: true |
fight-here, fight-here-selected | 15 | <distance> (how far apart the players stand, rounded) <max> |
fight-here-locked | 15 | <distance> <max> <reason>. Shown when Fight here cannot be picked right now |
arena | content slots | <arena> <status>. One per ready arena that allows the chosen kit. <status> is setup.arena-status-free or setup.arena-status-busy from the language file |
arena-selected | content slots | The same, for the arena already chosen. Has glow: true |
empty | 31 | Shown when no arena can be picked |
previous, next | 45, 53 | |
back | 49 | Back to the setup menu |
The Fight here button is left out when fight-here.enabled is false.
kit-select.yml
The kit picker. Title tokens <page> <pages>, 6 rows, content-slots for the kits.
| Item | Slot | Tokens |
|---|---|---|
kit | content slots | <kit> <ranked>, and <kit_lore> which becomes the kit's own lore lines. The material is the kit icon |
kit-selected | content slots | The same, for the kit already chosen. Has glow: true |
empty | 22 | Shown when no kit is available |
previous, next | 45, 53 | |
back | 49 | Back to the setup menu |
kit-preview.yml
The read only kit preview. Title token <kit>, 6 rows.
| Key | Default | What it holds |
|---|---|---|
inventory-slots | 0-26 | The 27 main inventory slots |
hotbar-slots | 27-35 | The 9 hotbar slots |
armour-slots | 36-39 | Helmet, chestplate, leggings, boots, in that order |
offhand-slot | 40 | The offhand item |
items.settings | 47 | Tokens <ranked> <hunger> <regen> <place> <break> |
items.effects | 51 | <effects> becomes one line per effect, using kit.menu messages |
items.close | 49 |
wager.yml
Two menus in one file: the currency menu and the amount menu. Title has no tokens, amount-title has <currency>, 4 rows for both.
| Key or item | Slot | Tokens |
|---|---|---|
content-slots | 10-16 | Where currencies go |
preset-slots | 10-14 | Where preset amount buttons go |
currency | content slots | <currency> <balance> <min> <max>. The material is the currency icon |
currency-unavailable | content slots | <currency> <reason> |
preset | preset slots | <amount> <currency> <balance> |
custom | 16 | <min> <max> <currency> |
remove | 22 | Removes the wager |
empty | 13 | Shown when no currency is enabled |
back | 31 |
wager-proposal.yml
What the opponent sees. Title token <proposer>, 3 rows.
| Item | Slot | Tokens |
|---|---|---|
info | 13 | <proposer> <amount> <total> <currency> <balance> <time> |
accept | 11 | <amount> <currency> |
decline | 15 |
stats.yml
/duel stats. Title token <player>, 4 rows. Every stat token works on every item here.
| Item | Slot | Tokens in the default lore |
|---|---|---|
profile | 4 | <player> <rank> <mmr> <position>. A player head shows that player's skin |
duels | 20 | <wins> <losses> <draws> <total> <winrate> |
ranked | 22 | <ranked_games> <ranked_wins> <ranked_losses> <season_games> <season_wins> <season_losses> |
records | 24 | <best_mmr> <best_rank> <best_position> <season_titles> <top3> |
close | 31 |
top.yml
/duel top when leaderboard.use-menu: true. Title tokens <season> <page> <pages>, 6 rows, content-slots for the entries.
| Item | Slot | Tokens |
|---|---|---|
entry | content slots | <position> <player> <mmr> <rank> <wins> <losses> <games>. A player head shows that player's skin |
empty | 22 | |
previous, next | 45, 53 | |
close | 49 |
rewards.yml
/duel rewards. Title tokens <page> <pages>, 6 rows, content-slots for the reward parts.
| Key or item | What it does | Tokens |
|---|---|---|
part-lore | Lines added under every reward part | <season> <position> <set> <status> |
claim-line | Extra line on parts that can be claimed | |
command-part | A command reward. The material is the set's icon when it has one | <line> |
real-money-part | A real money reward | <value> |
empty | Shown with no rewards, slot 22 | |
claim-all | Claim all button, slot 49 | <count> |
previous, next | Slots 45, 53 |
Item rewards show the saved item itself, with part-lore added under its own lore.
reward-items.yml
/duel reward item list <set>. Title tokens <set> <page> <pages>, 6 rows, content-slots: "0-44".
| Key or item | Tokens |
|---|---|
index-lore | <index>, added under every item |
previous, next, close | Slots 45, 53, 49 |
Tips
- Keep label and value rows readable: a light emoji, the label in white, the value in a stronger shade of the same colour, as the defaults do.
- If you add rows, move the bottom buttons too, or they stay where they were.
- Clicks play the
menu-clicksound fromconfig.yml.