Skip to content

ChatChannelsOff

class ChatChannelsOff : Component()
Example
on_object_option(Assets.WorldObject.poordoor, "Leave") { player ->
if (!player.hasComponent<ChatChannelsOff>()) return@on_object_option
player.removeComponent<ChatChannelsOff>()
player.message("You can talk again.")
}
override fun onComponentAddedToEntity()
override fun onComponentRemovedFromEntity()