From 1a1371b5f9820bcedd7aaa94e1c0a8024af2544a Mon Sep 17 00:00:00 2001 From: Ka0rX Date: Mon, 8 May 2023 09:12:44 +0100 Subject: [PATCH] Little debug for placeholders --- .../net/Indyuce/mmocore/comp/placeholder/RPGPlaceholders.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/MMOCore-API/src/main/java/net/Indyuce/mmocore/comp/placeholder/RPGPlaceholders.java b/MMOCore-API/src/main/java/net/Indyuce/mmocore/comp/placeholder/RPGPlaceholders.java index c9c506cd..e6ef8011 100644 --- a/MMOCore-API/src/main/java/net/Indyuce/mmocore/comp/placeholder/RPGPlaceholders.java +++ b/MMOCore-API/src/main/java/net/Indyuce/mmocore/comp/placeholder/RPGPlaceholders.java @@ -73,8 +73,8 @@ public class RPGPlaceholders extends PlaceholderExpansion { return String.valueOf(playerData.getSkillLevel(skill)); } - else if (identifier.startsWith("mmocore_attribute_points_spent_")) { - String attributeId = identifier.substring(31); + else if (identifier.startsWith("attribute_points_spent_")) { + String attributeId = identifier.substring(23); PlayerAttributes.AttributeInstance attributeInstance = Objects.requireNonNull(playerData.getAttributes().getInstance(attributeId), "Could not find attribute with ID '" + attributeId + "'"); return String.valueOf(attributeInstance.getBase()); }