Skip to Content
MineDuels

Dialogs

Pop-up windows for duel requests, party invites, confirmations and menus, with a chat fallback.

Files: plugins/MineDuels/dialogs.yml and plugins/MineDuels/dialogs/. Reload: /md reload. The reference is dialogs.yml.

A dialog is a pop-up window the client shows in the middle of the screen. Minecraft 1.21.6 added them. MineDuels uses them for requests, confirmations and some menus. A client that cannot show dialogs gets the chat message or the chest menu instead, so nothing is lost.

Settings

enabled: true

duel-request:
  enabled: true
  chat: true
party-invite:
  enabled: true
  chat: true
layout-rename:
  enabled: true
  chat: false
confirm-disband: true
confirm-layout-delete: true

menus:
  queue-unranked: false
  queue-ranked: false
  menu: true
  settings: true
KeyDefaultMeaning
enabledtrueThe master switch for all dialogs
duel-request.enabledtrueShow a duel request as a dialog with Accept and Deny
duel-request.chattrueAlso send the chat message, so the request is not missed
party-invite.enabled, .chattrueThe party invite dialog. Accept runs /party accept, Decline closes it
layout-rename.enabled, .chattrue, falseAsks for the new layout name in a dialog
confirm-disbandtrueAsk before /party disband
confirm-layout-deletetrueAsk before a kit layout is deleted
menus.<name>see aboveShow that menu as a dialog instead of a chest menu. The name is a file in dialogs/

The files in dialogs/ define menus that can be shown as a dialog:

FileMenu
settings.yml/settings
menu.ymlThe settings main menu
queue-unranked.yml, queue-ranked.ymlThe queue menus
duel-rounds.ymlThe rounds choice of a duel

Turn a menu on in menus:

menus:
  settings: true
  queue-ranked: true

A dialog file has a title, body lines, buttons and options:

title: "<dark_gray>⚙ <#9BBEFF>Settings"
body:
  - "<gray>Tap a setting to cycle it, <#C6DEF1>%player%<gray>."
columns: 2
can-close: true
pause: false
after-action: none
settings:
  label: "<setting_icon><#E2E8F0><setting_name><reset> <dark_gray>· <value>"
  tooltip: "<setting_description><newline><newline><dark_gray>Now <reset><value><newline><dark_gray>Next <reset><next>"
exit-label: "<#F08080>Close"
KeyMeaning
title, bodyMiniMessage. %player% works
columnsButtons per row
can-closeEscape closes the dialog
pausePause the game while open (single player only). Must be false with after-action: none
after-actionAfter a click: close, none (stay open) or wait_for_response
settings.label, settings.tooltipOne button per setting. Tags: <setting_icon>, <setting_name>, <setting_description>, <value>, <next>, <step_hint>, <reset>, <newline>
exit-labelThe text of the close button

Texts

The dialog texts such as the Accept button are in messages.yml under dialog, for example dialog.duel-request.title, .body and .confirm. The duel request body can use <player>, <kit_display>, <arena>, <rounds> and <seconds>.

Custom menus and dialogs

A custom menu item can open a dialog with [dialog] <name>.

Clients

Dialogs need a client of Minecraft 1.21.6 or newer. On a server with ViaVersion, MineDuels checks the client's real version and uses the chat or chest menu for older clients.

Related: GUIs, Duels, Parties.

On this page