Dialog
constructor(player: Player, title: String? = null, subtitle: String? = null, actionbar: String? = null, closeAction: CloseAction = CloseAction.ANY_CLICK, onChat: (Player, String) -> Boolean = { _, _ -> true }, allowedActions: List<AllowedActions> = listOf(AllowedActions.NONE))
Parameters
player
The player to send the dialog to
title
The title of the dialog. (Optional)
subtitle
The subtitle of the dialog. (Optional)
actionbar
The actionbar message of the dialog. (Optional)
closeAction
The kind of action needed to close the dialog. (Default to ANY_CLICK)
onChat
The action to perform when the player sends a message. If true is returned, the dialog will be closed. (Default to true)
allowedActions
The actions that are allowed while the player is in the dialog. (Default to NONE)