Dialog

fun Dialog(player: Player, title: String? = null, subtitle: String? = null, actionbar: String? = null, onClose: (Player) -> Unit = {}, onChat: (Player, String) -> Boolean = { _: Player, _: String -> true })

Parameters

player

The player that will see the dialog

title

The title of the dialog. If null it will be empty. (Defaults to null)

subtitle

The subtitle of the dialog. If null it will be empty. (Defaults to null)

actionbar

The actionbar of the dialog. If null it will be empty. (Defaults to null)

onClose

The function that will be called when the player closes the dialog. (Defaults to empty function)