Skip to content

Commit

Permalink
Translate precompiled color codes back to mini message in EcoSkills s…
Browse files Browse the repository at this point in the history
…tat names since thats so fun to do
  • Loading branch information
ErikSzabo committed Sep 29, 2024
1 parent a057b2c commit f8fc4a3
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
import com.willfp.ecoskills.api.modifiers.StatModifier;
import com.willfp.ecoskills.stats.Stat;
import com.willfp.ecoskills.stats.Stats;
import gg.auroramc.aurora.api.message.Chat;
import gg.auroramc.aurora.api.message.Placeholder;
import gg.auroramc.aurora.api.reward.NumberReward;
import gg.auroramc.levels.AuroraLevels;
Expand Down Expand Up @@ -68,6 +69,6 @@ public void init(ConfigurationSection args) {
public String getDisplay(Player player, List<Placeholder<?>> placeholders) {
var display = super.getDisplay(player, placeholders);
if (!valid) return display;
return Placeholder.execute(display, Placeholder.of("{stat}", stat.getName()));
return Placeholder.execute(display, Placeholder.of("{stat}", Chat.translateEverythingToMiniMessage(stat.getName())));
}
}

0 comments on commit f8fc4a3

Please sign in to comment.