on_xp_gain
on_xp_gain
Section titled “on_xp_gain”
fun RiftPlugin.on_xp_gain(behaviour: XpGain.(subject: Entity) -> Unit)XpGain.(subject: Entity) -> Uniton_xp_gain { player -> if (amount >= 100.0) player.message("A big ${skill.name} gain: $amount xp.")}Properties
Section titled “Properties”val skill: Skillamount
Section titled “amount”val amount: DoubleproducedOn
Section titled “producedOn”var producedOn: Inton_xp_gain
Section titled “on_xp_gain”
fun RiftPlugin.on_xp_gain( skill: String, behaviour: XpGain.(subject: Entity) -> Unit)XpGain.(subject: Entity) -> Unitskill: StringProperties
Section titled “Properties”val skill: Skillamount
Section titled “amount”val amount: DoubleproducedOn
Section titled “producedOn”var producedOn: Int