onChat

val onChat: (Player, String) -> Boolean

Parameters

onChat

The action to perform when the player sends a message. If true is returned, the dialog will be closed. (Default to true)