9
0
mirror of https://github.com/Auxilor/EcoSkills.git synced 2026-01-03 06:12:21 +00:00

Fixed boss bars

This commit is contained in:
Auxilor
2023-05-18 15:22:37 +01:00
parent db7af7d44b
commit 0f23f5e9e8

View File

@@ -53,9 +53,9 @@ class GainXPDisplay(
player.sendTemporaryBossBar(
message,
event.skill.id,
this.plugin.configYml.getInt("skills.progress.boss-bar.duration"),
BarColor.valueOf(this.plugin.configYml.getString("skills.progress.boss-bar.color").uppercase()),
BarStyle.valueOf(this.plugin.configYml.getString("skills.progress.boss-bar.style").uppercase()),
this.plugin.configYml.getInt("skills.gain-xp.boss-bar.duration"),
BarColor.valueOf(this.plugin.configYml.getString("skills.gain-xp.boss-bar.color").uppercase()),
BarStyle.valueOf(this.plugin.configYml.getString("skills.gain-xp.boss-bar.style").uppercase()),
player.getSkillProgress(skill).coerceIn(0.0..1.0)
)
}