Little debug for placeholders

This commit is contained in:
Ka0rX 2023-05-08 09:12:44 +01:00
parent 27d5c93ba7
commit 1a1371b5f9

View File

@ -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());
}