Dialog Inputs
Inputs are interactive widgets placed inside a dialog. Each input has an id (the map key in YAML), and its value is available as %input.<id>% inside button actions after the player submits.
text
A single-line or multi-line text field.
Field | Type | Default | Description |
|---|---|---|---|
| String (MiniMessage) | — | Label displayed above or beside the input. |
| int | API default | Width in pixels. |
| int | API default | Maximum character count. |
| String |
| Pre-filled placeholder text. |
| boolean |
| Whether the label is shown. |
| Object | null | Enable multi-line mode. |
| int | — | Maximum number of lines. |
| int | — | Total height of the multi-line area in pixels. |
Button action placeholder: %input.<id>% → the string the player typed.
boolean
A toggle button (on/off switch).
Field | Type | Default | Description |
|---|---|---|---|
| String (MiniMessage) | — | Label text. |
| boolean |
| Initial toggle state. |
| String |
| Text shown when toggled on. |
| String |
| Text shown when toggled off. |
Button action placeholder: %input.<id>% → "true" or "false".
slider
A numeric range slider.
Field | Type | Default | Description |
|---|---|---|---|
| String (MiniMessage) | — | Label text. |
| int | API default | Width in pixels. |
| float | — | Minimum value (inclusive). |
| float | — | Maximum value (inclusive). |
| float |
| Starting position. Must be within |
| float |
| Increment between steps. |
Button action placeholder: %input.<id>% → the float value as a string (e.g. "5.0").
options
A dropdown (single-choice selector).
Field | Type | Default | Description |
|---|---|---|---|
| String (MiniMessage) | — | Label text. |
| int | API default | Width in pixels. |
| boolean |
| Whether to show the label. |
|
| — | Available choices. Key is the internal value, |
| Component | — | MiniMessage display name shown in the list. |
| boolean |
| Whether this option is selected by default. Only one should be |
Button action placeholder: %input.<id>% → the key string of the selected option (e.g. "coins").