pause menu ( quick actions )
pause menu ( quick actions )
DialogMaster adds a custom button to the client's ESC pause screen and optionally to the G quick-actions bar, giving players instant access to the server menu without any command.
How It Works
This is implemented at the bootstrap level (before the plugin fully loads) using Paper's dialog registry API. The button is registered as a named dialog and then tagged to appear in the appropriate client screens.
Configuration
All options live under pause-menu: in config.yml:
pause-menu:
enabled: true
# Text shown on the button in the ESC screen and quick-actions bar
button-name: "Donut SMP"
# Also add the button to the G quick-actions bar
quick-actions: true
| Field | Default | Description |
|---|---|---|
enabled |
true |
Toggles the feature entirely |
button-name |
"Donut SMP" |
Label on the button |
quick-actions |
true |
Whether to also appear in the G quick-actions bar |
The button opens whichever menu is set as general.main-menu-target in config.yml (default: main-menu).
Changes to pause-menu settings require a full server restart, these are registered at bootstrap time before the plugin loads, so /ydm reload is not sufficient.
Where the Button Appears
- ESC / Pause screen, always shown when
enabled: true, as an addition to the vanilla pause buttons. - G quick-actions bar, shown when both
enabled: trueandquick-actions: true. This is the bar players open by pressing G in-game (requires a Paper build that supportsQUICK_ACTIONSdialog tag).
Dialog Key
The registered dialog key is ydm:pause_button. You can reference it externally if needed:
DialogMasterBootstrapper.PAUSE_DIALOG // Key.key("ydm", "pause_button")