forked from Upstream/mmocore
Little debug for placeholders
This commit is contained in:
parent
27d5c93ba7
commit
1a1371b5f9
@ -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());
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user