zRivals Duels logozRivals Duels

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.

A six row menu grid numbered 0 to 53 with content slots 10 to 16, 19 to 25 and 28 to 34 highlighted, and the previous, back and next buttons in slots 45, 49 and 53.

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: []
KeyWhat it does
titleMenu title in MiniMessage format. Each menu lists its tokens in the comment above it
rowsRows from 1 to 6, 9 slots each
fillerThe item used for every empty slot. enabled: false leaves them empty
content-slotsFor paged menus, the slots entries are placed in, in order. The number of slots is the number of entries per page
items.<id>.slotWhere a button goes. Use slots: with a list to place it in several slots
items.<id>.materialThe item material
items.<id>.amountOptional stack size
items.<id>.nameItem name, MiniMessage format
items.<id>.loreLore lines, MiniMessage format. [] for none
items.<id>.glowOptional, 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.

ItemSlotTokens
timer4<time> <player1> <player2>
mode-ranked, mode-unranked11
mode-locked11<reason>
kit13<kit>. The material is the chosen kit's icon, CHEST when none
kit-own-gear13<kit>. Shown instead of kit while Own gear is chosen
gear-kit, gear-own20<rule>, what happens to the loser's items
wager-none15
wager-set15<amount> <total> <currency>
wager-pending15<amount> <currency> <proposer> <target> <time>
location-random22Shown when Random arena is chosen
location-arena22<arena>, the chosen arena's display name
location-here22<max>, the fight-here.max-distance value
confirm-waiting, confirm-readyset by confirm-player1-slot: 29 and confirm-player2-slot: 33<player>
confirm-waiting-drop, confirm-ready-dropthe same confirm slots<player>. Used for own gear duels while own-gear.loser-items is DROP
cancel31

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).

ItemSlotTokens
random, random-selected11Random arena, and the same button when it is the current choice. random-selected has glow: true
fight-here, fight-here-selected15<distance> (how far apart the players stand, rounded) <max>
fight-here-locked15<distance> <max> <reason>. Shown when Fight here cannot be picked right now
arenacontent 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-selectedcontent slotsThe same, for the arena already chosen. Has glow: true
empty31Shown when no arena can be picked
previous, next45, 53
back49Back 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.

ItemSlotTokens
kitcontent slots<kit> <ranked>, and <kit_lore> which becomes the kit's own lore lines. The material is the kit icon
kit-selectedcontent slotsThe same, for the kit already chosen. Has glow: true
empty22Shown when no kit is available
previous, next45, 53
back49Back to the setup menu

kit-preview.yml

The read only kit preview. Title token <kit>, 6 rows.

KeyDefaultWhat it holds
inventory-slots0-26The 27 main inventory slots
hotbar-slots27-35The 9 hotbar slots
armour-slots36-39Helmet, chestplate, leggings, boots, in that order
offhand-slot40The offhand item
items.settings47Tokens <ranked> <hunger> <regen> <place> <break>
items.effects51<effects> becomes one line per effect, using kit.menu messages
items.close49

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 itemSlotTokens
content-slots10-16Where currencies go
preset-slots10-14Where preset amount buttons go
currencycontent slots<currency> <balance> <min> <max>. The material is the currency icon
currency-unavailablecontent slots<currency> <reason>
presetpreset slots<amount> <currency> <balance>
custom16<min> <max> <currency>
remove22Removes the wager
empty13Shown when no currency is enabled
back31

wager-proposal.yml

What the opponent sees. Title token <proposer>, 3 rows.

ItemSlotTokens
info13<proposer> <amount> <total> <currency> <balance> <time>
accept11<amount> <currency>
decline15

stats.yml

/duel stats. Title token <player>, 4 rows. Every stat token works on every item here.

ItemSlotTokens in the default lore
profile4<player> <rank> <mmr> <position>. A player head shows that player's skin
duels20<wins> <losses> <draws> <total> <winrate>
ranked22<ranked_games> <ranked_wins> <ranked_losses> <season_games> <season_wins> <season_losses>
records24<best_mmr> <best_rank> <best_position> <season_titles> <top3>
close31

top.yml

/duel top when leaderboard.use-menu: true. Title tokens <season> <page> <pages>, 6 rows, content-slots for the entries.

ItemSlotTokens
entrycontent slots<position> <player> <mmr> <rank> <wins> <losses> <games>. A player head shows that player's skin
empty22
previous, next45, 53
close49

rewards.yml

/duel rewards. Title tokens <page> <pages>, 6 rows, content-slots for the reward parts.

Key or itemWhat it doesTokens
part-loreLines added under every reward part<season> <position> <set> <status>
claim-lineExtra line on parts that can be claimed
command-partA command reward. The material is the set's icon when it has one<line>
real-money-partA real money reward<value>
emptyShown with no rewards, slot 22
claim-allClaim all button, slot 49<count>
previous, nextSlots 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 itemTokens
index-lore<index>, added under every item
previous, next, closeSlots 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-click sound from config.yml.

On this page