9
0
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:
_OfTeN_
2021-11-02 16:59:42 +03:00
parent 30167adecd
commit efc3994551
2 changed files with 7 additions and 1 deletions

View File

@@ -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

View File

@@ -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