Register Dialog (Structure) — Skript

Addon: Skript · Category: Structure

Syntax

register (notice:notice|confirmation:confirmation|multi:multi[ ]action|links:server links) dialog <.+>

Description

Builds a dialog and registers it in the server dialog registry under a namespaced key, so it can be shown by key and referenced by other dialogs. Entries are the same as the matching 'new dialog' section.

Registry changes do not reach players who are already connected, because they would have to return to the configuration phase first. Use this for dialogs defined at startup, and show runtime-built dialogs as values instead.

Examples

register multi action dialog "myserver:shop":
	title: mm("<gold>Shop")
	buttons: (new dialog button labeled "Buy" running command "buy")

View source