Skip to content

on_level_up

fun RiftPlugin.on_level_up(behaviour: LevelUp.(subject: Entity) -> Unit)
LevelUp.(subject: Entity) -> Unit

Entity

Example
on_level_up { player ->
player.message("Your ${skill.name} level is now $to.")
if (to == 99) broadcast("Someone just reached 99 ${skill.name}!")
}
val skill: Skill
val from: Int
val to: Int
var producedOn: Int

fun RiftPlugin.on_level_up(
skill: String,
behaviour: LevelUp.(subject: Entity) -> Unit
)
LevelUp.(subject: Entity) -> Unit

Entity

skill: String
val skill: Skill
val from: Int
val to: Int
var producedOn: Int