Skip to content

on_realm_stop

fun on_realm_stop(behaviour: RealmStop.() -> Unit)
RealmStop.() -> Unit
Example
on_realm_stop {
val why = message ?: "The realm is switching off."
World.players.forEach { player -> player.message(if (restarting) "$why Back in a moment." else why) }
}
val restarting: Boolean
val message: String?