9
0
mirror of https://github.com/Auxilor/EcoSkills.git synced 2026-01-02 13:56:38 +00:00

Config and API

This commit is contained in:
Auxilor
2023-05-12 18:18:36 +01:00
parent 6f1a035dee
commit 46a5db60e7
2 changed files with 7 additions and 0 deletions

View File

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

View File

@@ -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| &#40ffe6✦ &f%ecoskills_speed%"
# Optional format if mana is being used.
# format: "&c❤ &f%player_health_rounded%&8/&f%player_max_health_rounded% &#40ffe6✿ &f%ecoskills_mana%&8/&f%ecoskills_mana_limit%"
# The worlds that the action bar should be disabled in.
disabled-in-worlds: [ ]