Denizen Script Commands


Commands are always written with a '-' before them, and are the core component of any script, the primary way to cause things to happen.
Learn about how commands work in The Beginner's Guide.


Showing 1 out of 179 commands...
Nameshowdialog
Syntaxshowdialog [<dialog>] (def:<ListTag>)
Short DescriptionOpens a custom Paper dialog for a player.
Full DescriptionOpens a Paper-native dialog window for the player linked to the script queue.
The dialog layout must be defined in a dialog script container,
see Language:Dialog Script Containers.

Optionally specify a list of definitions to pass in, named by the container's 'definitions' key,
in the same way Command:run passes definitions to a task script.
These, along with any other definitions in the queue at the time, remain available to the scripts
attached to the dialog's buttons, which run later, when the button is clicked.
Related TagsNone
Usage Example
# Use to open a simple dialog script with no definitions.
- showdialog my_simple_dialog
Usage Example
# Use to pass definitions (like a quest ID or a reward amount) into the dialog.
- showdialog quest_confirm_dialog def:quest_01|1000
Groupplayer
RequiresPaper
Sourcehttps://github.com/MINEZ/Denizen/blob/dev/paper/src/main/java/com/denizenscript/denizen/paper/commands/ShowDialogCommand.java#L39