From 2290fe70667824fb318f36e71c31bf1ca26f7a24 Mon Sep 17 00:00:00 2001 From: Jules Date: Sat, 1 Apr 2023 23:31:11 +0200 Subject: [PATCH] Fixed stat placeholder --- .../mmoitems/comp/placeholders/MMOItemsPlaceholders.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/MMOItems-API/src/main/java/net/Indyuce/mmoitems/comp/placeholders/MMOItemsPlaceholders.java b/MMOItems-API/src/main/java/net/Indyuce/mmoitems/comp/placeholders/MMOItemsPlaceholders.java index 74e2f43f..4e33e042 100644 --- a/MMOItems-API/src/main/java/net/Indyuce/mmoitems/comp/placeholders/MMOItemsPlaceholders.java +++ b/MMOItems-API/src/main/java/net/Indyuce/mmoitems/comp/placeholders/MMOItemsPlaceholders.java @@ -60,7 +60,7 @@ public class MMOItemsPlaceholders extends PlaceholderExpansion { } if (identifier.startsWith("stat_")) { - final String stat = UtilityMethods.caseOnWords(identifier.substring(5)); + final String stat = UtilityMethods.enumName(identifier.substring(5)); return StatManager.format(stat, MMOPlayerData.get(player)); }