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.
- Item names and lore use MiniMessage or
&color codes.<smallcaps>text</smallcaps>gives small capital letters. - Icons can use
material,custom-model-dataor a Nexo item (nexo:). - PlaceholderAPI placeholders (
%...%) work in every item name and lore, for the player who looks at the menu.
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::
| Placeholder | Shows |
|---|---|
<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.
Back button
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
| Menu | Opened by | File |
|---|---|---|
| Queue | /queue, /ranked, /unranked | queue.yml |
| Duel request flow | /duel | duel-flow.yml |
| Statistics and kit statistics | /stats | stats.yml, kit-stats.yml |
| Tiers, tier pages and tier test prompt | /tiers, /tierinfo | tiers.yml |
| Tier leaderboard | /tiers top | tiers.yml |
| Match history | /matchhistory | match-history.yml |
| Settings | /settings | settings.yml |
| FFA arenas | /ffa | ffa.yml |
| Custom kits (play, kit page, settings) | /queue Unranked, /customkits | custom-kits.yml |
| Party, tournaments, kits, custom kits, profile, spectate | their commands | matching files in dialog-menus/ |
Queue
- Tabs for Favorites, All Kits and each kit category, and a Ranked / Unranked switch. It opens on Unranked for new players and then remembers the last choice.
- Each kit row shows the players queued; click to join or leave. Queue All joins every kit in the tab; Keep Queuing puts the player back in their queues after each match.
- Hover texts: the kit description, the kit icon (tier, points, queue size) and, in Ranked with tiers on, a progress bar whose hover gives the next step towards a tier test.
- When a tier test is ready, a ⚔ Tier Test button appears next to the bar. Clicking the kit opens the tier test prompt instead (see Tier tests). While in the test queue, the menu shows the test status and a row to leave it.
- Ranked is 1v1 only. Custom kits stay out of Ranked unless
dialog-queue-menu.custom-kits-in-ranked: true.
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:
- Your kits: click a kit to host it (whoever joins plays your kit); [Manage] opens the kit page. Empty slots open the kit editor.
- Hosted by others: kits other players are hosting for that team size; click to join.
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."
Texts of Other Dialogs
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.
Pause Menu Links
Separate from dialogs: pause-links in config.yml adds buttons to the client's pause menu under Server Links. See Configuration.