Dialog
class Dialog(val player: Player, val title: String? = null, val subtitle: String? = null, val actionbar: String? = null, val closeAction: CloseAction = CloseAction.ANY_CLICK, val onChat: (Player, String) -> Boolean = { _, _ -> true }, val allowedActions: List<AllowedActions> = listOf(AllowedActions.NONE)) : Listener
Represents a Dialog (Title, Subtitle and Actionbar message)
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)
Constructors
Link copied to clipboard
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))
Properties
Functions
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard