on_level_up
on_level_up
Section titled “on_level_up”
fun RiftPlugin.on_level_up(behaviour: LevelUp.(subject: Entity) -> Unit)LevelUp.(subject: Entity) -> Uniton_level_up { player -> player.message("Your ${skill.name} level is now $to.") if (to == 99) broadcast("Someone just reached 99 ${skill.name}!")}Properties
Section titled “Properties”val skill: Skillval from: Intval to: IntproducedOn
Section titled “producedOn”var producedOn: Inton_level_up
Section titled “on_level_up”
fun RiftPlugin.on_level_up( skill: String, behaviour: LevelUp.(subject: Entity) -> Unit)LevelUp.(subject: Entity) -> Unitskill: StringProperties
Section titled “Properties”val skill: Skillval from: Intval to: IntproducedOn
Section titled “producedOn”var producedOn: Int