zRivals Duels logozRivals Duels

Setup menu

The shared menu where both players choose the mode, kit or own gear, location and wager, and confirm before the duel starts.

After a request is accepted, both players see the same menu. It is one shared session, so when either player changes something, the menu updates for both. Nothing starts until both have confirmed the exact same setup.

A five row menu grid with the timer in slot 4, the mode button in slot 11, the kit button in slot 13, the wager button in slot 15, player confirm buttons in slots 29 and 33 and the cancel button in slot 31.

The buttons

SlotButtonWhat it does
4TimerShows the seconds left and both player names
11ModeShows Unranked. Challenges are unranked unless queue.ranked-challenges is on, then it switches between Ranked and Unranked
13KitOpens the kit picker. Shows the chosen kit's icon
15WagerOpens the wager menu, or shows the agreed or pending wager
20GearSwitches between a kit and Own gear. Only shown when own-gear.enabled is on
22LocationOpens the location menu. Shows Random arena, the chosen arena or Fight here
29Player 1 confirmOnly the first player can click it. Click again to take it back
31CancelCancels the setup for both players
33Player 2 confirmOnly the second player can click it

Every slot, item, name and lore line can be changed in menus/setup.yml, see Menus.

Mode

By default every challenge is unranked. The mode button shows the mode-queue-only item, a locked Unranked button whose lore points to /duel queue ranked, and clicking it sends setup.ranked-queue-only with a clickable link to the ranked queue. Ranked duels come from the matchmaking queue.

With queue.ranked-challenges: true in config.yml the button switches between Ranked and Unranked as before. Ranked needs both players to have zrivalsduels.ranked and to pass the anti abuse checks. When ranked is not allowed, the mode button turns into a locked Unranked button with the reason in its lore, for example that both players share an IP address.

Switching to ranked clears the chosen kit if that kit has ranked-allowed: false, and puts the location back on Random arena if Fight here was chosen. Ranked duels are only fought in arenas.

Kit

The kit picker lists only kits both players are allowed to use, and in ranked only kits allowed in ranked. Left click a kit to choose it, right click to preview it first. A kit must be chosen before anyone can confirm.

Gear

The Gear button switches between a kit and Own gear. With Own gear no kit is given, both players fight with the inventory, armour and offhand they carry. It works in arenas, with Fight here and with wagers. While Own gear is chosen the kit button shows Own gear, and clicking it goes back to choosing a kit.

Own gear is unranked only. Picking it while the mode is Ranked is refused, and switching to Ranked clears it the same way it clears a kit that is not allowed in ranked. With own-gear.permission-required on, both players need zrivalsduels.kit.own-gear.

What happens to the loser's items is set by own-gear.loser-items:

ValueWhat happens
DROPThe default. The loser loses everything they carry and the winner receives it after the fight. Items that do not fit drop at the winner's feet. Death, forfeit, leaving the bounds and logging out all count as losing. A draw, the time limit or an admin ending the duel keeps everyone's items
KEEPBoth players keep their items whatever the result, only the wager is at stake. Food, potions and durability used in the fight stay used

While DROP is on, the confirm buttons use the confirm-waiting-drop and confirm-ready-drop items with a red warning, and both players get a chat warning when Own gear is chosen and when a player confirms.

An arena with an allowed-kits list only takes Own gear when own-gear is on that list. Arenas with an empty list take every kit and Own gear. See Own gear duels for what happens during and after the fight.

Location

The location button opens a menu with three kinds of choice:

ChoiceWhat happens
Random arenaThe default. A free arena that allows the kit is picked when the duel starts, the same as before this button existed
Fight hereUnranked only. The duel happens where both players are standing, nobody is teleported. See Fight here
An arenaEvery ready arena that allows the chosen kit is listed, a page at a time, each marked Free or In use

Picking a location clears both confirmations and tells both players who chose what.

The chosen arena can change on its own:

  • Changing the kit to one the chosen arena does not allow puts the choice back on Random arena, and both players are told.
  • If the chosen arena is disabled, deleted or stops allowing the kit before the duel starts, the choice goes back to Random arena when both confirm, and the players are asked to confirm again.
  • If the chosen arena is in use when both confirm, both players go back to the menu with a message. Wait for that duel to end or pick another location.

Fight here is only listed when fight-here.enabled is true. When it cannot be used right now, for example because the two players stand too far apart, the button is locked and its lore says why.

Wager

Optional. Either player can propose one, the other accepts or declines. See Wagers and currencies.

Confirming

Each player has their own confirm button that shows both confirm states. The duel starts only when both are confirmed. Any change to the mode, kit, location or wager clears both confirmations and tells the players.

When both confirm, every start check runs again:

  • both players are still online
  • the kit still exists and both can still use it, or Own gear is still enabled and allowed
  • the kit is still allowed in ranked, if ranked was chosen
  • both players can still afford the wager
  • ranked is still allowed
  • with Random arena, a free arena exists for this kit
  • with a chosen arena, that arena is still ready, allows the kit and is free
  • with Fight here, every Fight here check still passes

If any check fails, both players get the reason and go back to the menu with confirmations cleared. If they all pass, the duel starts. For Fight here the distance between the two players is checked once more right before the countdown, and the duel is cancelled if they moved too far apart. See Duels and protection.

Timeout, closing and leaving

setup:
  # Seconds both players have to confirm the setup before it is cancelled
  timeout-seconds: 120
  # What closing the setup menu does: REOPEN lets players reopen it with /duel menu, CANCEL ends the setup
  close-action: REOPEN
KeyWhat it doesDefault
timeout-secondsThe setup is cancelled if it is not confirmed in time. Values below 10 are treated as 10120
close-actionREOPEN lets a player close the menu and reopen it with /duel menu before the timer runs out. CANCEL ends the setup for both as soon as one player closes itREOPEN

If either player leaves the server during setup, the setup is cancelled. No stats change and no wager is taken.

On this page