From 19f3b164468d9ac188821252571de85b96aa5f1d Mon Sep 17 00:00:00 2001 From: Aria Sangarin Date: Wed, 25 Mar 2020 17:58:12 +0100 Subject: [PATCH] Fixed attribute placement in placeholder code --- .../Indyuce/mmocore/comp/placeholder/RPGPlaceholders.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main/java/net/Indyuce/mmocore/comp/placeholder/RPGPlaceholders.java b/src/main/java/net/Indyuce/mmocore/comp/placeholder/RPGPlaceholders.java index 41ee6e90..bbfc377c 100644 --- a/src/main/java/net/Indyuce/mmocore/comp/placeholder/RPGPlaceholders.java +++ b/src/main/java/net/Indyuce/mmocore/comp/placeholder/RPGPlaceholders.java @@ -48,9 +48,6 @@ public class RPGPlaceholders extends PlaceholderExpansion /** implements Relatio else if (identifier.equals("health")) return MMOCore.plugin.configManager.decimals.format(player.getHealth()); - else if (identifier.startsWith("attribute_")) - return String.valueOf(PlayerData.get(player).getAttributes().getAttribute(MMOCore.plugin.attributeManager.get(identifier.substring(10).toLowerCase().replace("_", "-")))); - else if (identifier.equals("class")) return PlayerData.get(player).getProfess().getName(); @@ -85,6 +82,9 @@ public class RPGPlaceholders extends PlaceholderExpansion /** implements Relatio else if (identifier.equals("attribute_reallocation_points")) return "" + PlayerData.get(player).getAttributeReallocationPoints(); + else if (identifier.startsWith("attribute_")) + return String.valueOf(PlayerData.get(player).getAttributes().getAttribute(MMOCore.plugin.attributeManager.get(identifier.substring(10).toLowerCase().replace("_", "-")))); + else if (identifier.equals("mana")) return MMOCore.plugin.configManager.decimal.format(PlayerData.get(player).getMana());