Menus & Dialogs

ShyamDuels menus can be chest menus or Minecraft dialogs. Change their layout, texts and icons, and use placeholders in them.

Chest Menus

Chest menus are in plugins/ShyamDuels/menus/, one file per menu, for example queue-kit.yml, duel.yml, ffa.yml, spectate.yml, player-settings.yml, profile.yml and kitroom.yml. Change a file and run /sd reload-gui.

Kit placeholders in queue menus

Kit items in the queue, duel and party kit menus can show the player's own stats for that kit. Use these in kit-item lore or in the lore of one kit under kits::

PlaceholderShows
<kit>, <queued>, <playing>, <queue_status>Kit name, players queued, players fighting, your queue state
<kit_elo>, <kit_rank>, <kit_rank_colored>Your Elo and rank in the kit
<kit_wins>, <kit_losses>, <kit_games>Your record in the kit
<kit_tier>, <kit_tier_colored>, <kit_tier_icon>, <kit_tier_color>Your tier in the kit
<kit_points>, <kit_peak_tier>, <kit_peak_tier_colored>, <kit_placements>Tier points, best tier, placement matches
<kit_tier_rating>Tier rating, or "Unplaced (2/5)"
<kit_tier_record>, <kit_tier_win_rate>, <kit_tier_rank>Tier record (W-L), win rate, place on the board
<kit_tier_peak>, <kit_tier_peak_colored>, <kit_tier_progress>Best tier, percent ready for a test
<kit_tier_test_status>, <kit_tier_test_available>, <kit_tier_test_participating>Tier test state
<tier_current>Your tier in the kit, with color

The party kit menu also has <required> and <players>. Tier placeholders need tiers on (see Tiers).

Dialog Menus

Dialogs show text, links, hover texts, checkboxes and sliders instead of chest slots. They need Paper 1.21.7 or newer.

Turning dialogs on

In config.yml:

gui:
  # NORMAL = chest inventories, DIALOG = dialogs
  mode: DIALOG
  # The settings menu can use its own mode
  settings-mode: DIALOG

Dialog texts and layout live in plugins/ShyamDuels/dialog-menus/*.yml, one file per menu. Missing keys fall back to the built-in defaults, so an older file keeps working after an update. Bedrock players (Floodgate) get the same menus without sprite icons and player heads.

A menu opened from another menu gets a Back button that returns to the previous page, keeping its tab and page. Esc closes everything.

# dialog-menus/navigation.yml
dialog-navigation:
  back: "<#AAAAAA>« Back"
  back-width: 120
  # How many menus Back can step through.
  max-depth: 8

Dialog files

MenuOpened byFile
Queue/queue, /ranked, /unrankedqueue.yml
Duel request flow/duelduel-flow.yml
Statistics and kit statistics/statsstats.yml, kit-stats.yml
Tiers, tier pages and tier test prompt/tiers, /tierinfotiers.yml
Tier leaderboard/tiers toptiers.yml
Match history/matchhistorymatch-history.yml
Settings/settingssettings.yml
FFA arenas/ffaffa.yml
Custom kits (play, kit page, settings)/queue Unranked, /customkitscustom-kits.yml
Party, tournaments, kits, custom kits, profile, spectatetheir commandsmatching files in dialog-menus/

Queue

Duel request flow

/duel without a name opens a player search with up to 9 online suggestions. After picking a kit, an options page shows both players' tier or rank and a rounds slider. A confirmation appears after sending, with a "Don't show again" button. With duel-settings on, the send page also has rule switches. See /duel Match Settings.

FFA arenas

A header with the number of arenas and players fighting (hover for your kill streak), then one row per arena: icon, kit description, players fighting, the next reset and the current streak leader. Hovering a row lists the top streaks inside with player heads. Text: dialog-ffa-arenas in dialog-menus/ffa.yml.

Custom kits

In the Unranked queue, Custom kits › opens one page for the chosen team size:

The kit page has Host buttons for each team size, Edit items (the inventory editor) and Settings: checkboxes for building, crafting, anvils and enchanting and a Best-of slider, saved on Back or Done. Text: dialog-menus/custom-kits.yml. Hide the link with dialog-queue-menu.custom-kits-in-unranked: false in dialog-menus/queue.yml (custom-kits-in-ranked shows it in Ranked), or turn custom kits off with modules.custom-kits: false.

Settings

A page of category buttons (Gameplay, Chat, Social, Display, World) and a search box. Each category, and each search, opens a page of checkboxes and option pickers. Changes save on Back or Done; Esc discards them. See Player Settings.

Tiers

The kit list, a page per kit with the five readiness bars (hover a bar for how to raise it, click it for a page on what it shows and why), the tier test prompt and the leaderboard with kit tabs, search and country and client filters. See Tiers.

Kit and Category Descriptions

Hover texts for kits and categories come from dialog-menus/kit-info.yml. A kit or category left out uses the lore already set on its icon item, so most servers need no setup.

kit-info:
  kits:
    sword: "<#AAAAAA>Diamond sword and armor. No shields."
  categories:
    weapons: "<#AAAAAA>Melee kits built around one weapon."

The party (including the team split roster and privacy names), spectate, profile, tournament, country, kit selector and kit editor dialogs, the search box and the shared Back, Close, Previous and Next buttons read their titles, buttons, tooltips and empty-state lines from dialog-menus/menu-texts.yml (section dialog-texts). The file is created on first start; delete a line to get the default back. Keys added in later versions work without being in your file; copy them from the bundled file to change them. The dialog title style is dialog-texts.common.title and title-with-subtitle.

dialog-texts:
  common:
    back: "<color:#37F699>Back</color>"
    page: "<gray>Page <page> of <pages></gray>"
  party-manage:
    ffa-tooltip: "<gray>Free for all match with party members</gray>"

Saved Choices

Favorites, the last Ranked / Unranked choice, Keep Queuing and "Don't show again" are stored per player in the database table player_preferences, so they follow the player across servers that share the database.

Separate from dialogs: pause-links in config.yml adds buttons to the client's pause menu under Server Links. See Configuration.