Changed placeholders in default player-stats.yml to reduce possible confusion

This commit is contained in:
Jules 2024-06-13 00:19:41 -07:00
parent 2f70c86b7e
commit 151eebcde4
2 changed files with 4 additions and 7 deletions

View File

@ -95,12 +95,9 @@ public class PlayerStats extends EditableInventory {
// holders.register("profession", type.getName()); // holders.register("profession", type.getName());
holders.register("progress", bar); holders.register("progress", bar);
holders.register("level", "" + inv.target.getCollectionSkills().getLevel(profession)); holders.register("level", String.valueOf(inv.target.getCollectionSkills().getLevel(profession)));
holders.register("xp", inv.target.getCollectionSkills().getExperience(profession)); holders.register("xp", inv.target.getCollectionSkills().getExperience(profession));
holders.register("percent", decimal.format(ratio * 100)); holders.register("percent", decimal.format(ratio * 100));
for (StatInfo stat : MMOCore.plugin.statManager.getLoaded())
if (Objects.equals(stat.profession, profession))
holders.register(stat.name.toLowerCase(), StatManager.format(stat.name, stats.getStat(stat.name)));
return holders; return holders;
} }

View File

@ -64,9 +64,9 @@ items:
- '&7&ocan''t find anywhere else. The more you' - '&7&ocan''t find anywhere else. The more you'
- '&7&ofish, the easier it becomes to find these.' - '&7&ofish, the easier it becomes to find these.'
- '' - ''
- '&7Fishing Strength: &c{fishing_strength}%' - '&7Fishing Strength: &c%mmocore_stat_fishing_strength%%'
- '&7Crit Fishing Rate: &c{critical_fishing_chance}%' - '&7Crit Fishing Rate: &c%mmocore_stat_critical_fishing_chance%%'
- '&7Crit Failure Rate: &c{critical_fishing_failure_chance}%' - '&7Crit Failure Rate: &c%mmocore_stat_critical_fishing_failure_chance%%'
alchemy-profession: alchemy-profession:
slots: [20] slots: [20]
function: profession_alchemy function: profession_alchemy