diff --git a/eco-core/core-plugin/src/main/kotlin/com/willfp/ecoskills/api/EcoSkillsAPI.kt b/eco-core/core-plugin/src/main/kotlin/com/willfp/ecoskills/api/EcoSkillsAPI.kt index 68e5049..4d11fd5 100644 --- a/eco-core/core-plugin/src/main/kotlin/com/willfp/ecoskills/api/EcoSkillsAPI.kt +++ b/eco-core/core-plugin/src/main/kotlin/com/willfp/ecoskills/api/EcoSkillsAPI.kt @@ -78,6 +78,9 @@ Stats fun OfflinePlayer.getBaseStatLevel(stat: Stat): Int = this.stats[stat] +fun OfflinePlayer.setBaseStatLevel(stat: Stat, value: Int) = + this.stats.set(stat, value) + fun OfflinePlayer.getStatLevel(stat: Stat): Int = if (this is Player) this.statModifiers.getModifiedValue(stat) else this.getBaseStatLevel(stat) diff --git a/eco-core/core-plugin/src/main/resources/config.yml b/eco-core/core-plugin/src/main/resources/config.yml index 53797b8..81ee649 100644 --- a/eco-core/core-plugin/src/main/resources/config.yml +++ b/eco-core/core-plugin/src/main/resources/config.yml @@ -250,6 +250,10 @@ persistent-action-bar: scale-health: true # The format format: "&c❤ &f%player_health_rounded%&8/&f%player_max_health_rounded% &#e884b0🛡 &f%ecoskills_defense% &8| &#db0000🗡 &f%ecoskills_strength% &8| (ffe6✦ &f%ecoskills_speed%" + + # Optional format if mana is being used. + # format: "&c❤ &f%player_health_rounded%&8/&f%player_max_health_rounded% (ffe6✿ &f%ecoskills_mana%&8/&f%ecoskills_mana_limit%" + # The worlds that the action bar should be disabled in. disabled-in-worlds: [ ]