Menu DSL
Menu DSL
Section titled “Menu DSL”ReferenceThe inline
The inline openMenu(…) path is the preferred quick-flow API for most menu work.
DaisyMenu object Immutable menu definition.
DaisyMenuSession object Per-player runtime menu instance created when a menu opens.
slot object Assigns one slot render and click contract.
background object Applies a repeated filler item to unassigned menu slots.
message string MiniMessage-first feedback path for menu clicks.
plainMessage string Literal text escape hatch when you truly need raw text.
closeOnClick boolean Closes the active menu session after click handling.
pagination object Adds paged rendering behavior to repeated content areas.
Main entrypoints
Section titled “Main entrypoints”fun menu(title: String, rows: Int = 3, block: DaisyMenuBuilder.() -> Unit): DaisyMenufun Player.openMenu(menu: DaisyMenu): DaisyMenuSessionfun Player.openMenu( title: String, rows: Int = 3, block: DaisyMenuBuilder.() -> Unit,): DaisyMenuSession