forked from Upstream/mmocore
Fixed %mmocore_attribute_points_spent_<attr>%
This commit is contained in:
parent
8a017a6109
commit
a33d4061cd
@ -87,8 +87,8 @@ public class RPGPlaceholders extends PlaceholderExpansion {
|
|||||||
}
|
}
|
||||||
|
|
||||||
else if (identifier.startsWith("attribute_points_spent_")) {
|
else if (identifier.startsWith("attribute_points_spent_")) {
|
||||||
String attributeId = identifier.substring(31);
|
final String attributeId = identifier.substring(23);
|
||||||
PlayerAttributes.AttributeInstance attributeInstance = Objects.requireNonNull(playerData.getAttributes().getInstance(attributeId), "Could not find attribute with ID '" + attributeId + "'");
|
final PlayerAttributes.AttributeInstance attributeInstance = Objects.requireNonNull(playerData.getAttributes().getInstance(attributeId), "Could not find attribute with ID '" + attributeId + "'");
|
||||||
return String.valueOf(attributeInstance.getBase());
|
return String.valueOf(attributeInstance.getBase());
|
||||||
} else if (identifier.equals("level_percent")) {
|
} else if (identifier.equals("level_percent")) {
|
||||||
double current = playerData.getExperience(), next = playerData.getLevelUpExperience();
|
double current = playerData.getExperience(), next = playerData.getLevelUpExperience();
|
||||||
|
Loading…
Reference in New Issue
Block a user