mirror of
https://github.com/Auxilor/EcoSkills.git
synced 2026-01-06 15:51:52 +00:00
Added "allow-flying" option to Exploration skill to allow/prevent flying players to get XP for that skill
This commit is contained in:
@@ -22,6 +22,10 @@ class SkillExploration : Skill(
|
||||
return
|
||||
}
|
||||
|
||||
if (!this.config.getBool("allow-flying") && player.isFlying) {
|
||||
return;
|
||||
}
|
||||
|
||||
val from = event.from
|
||||
val to = event.to ?: return
|
||||
|
||||
|
||||
@@ -79,4 +79,6 @@ multiply-xp-by-speed: true
|
||||
# The amount of experience to give for each point of fall damage taken
|
||||
fall-damage-xp-per-hp: 16
|
||||
# If experience should be given when the player dies of fall damage
|
||||
give-xp-on-fatal-fall: false
|
||||
give-xp-on-fatal-fall: false
|
||||
# If experience should be given when the player is flying (/fly)
|
||||
allow-flying: true
|
||||
Reference in New Issue
Block a user