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:
@@ -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)
|
||||
|
||||
|
||||
@@ -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: [ ]
|
||||
|
||||
|
||||
Reference in New Issue
Block a user