mirror of
https://gitlab.com/phoenix-dvpmt/mmocore.git
synced 2024-12-28 05:37:44 +01:00
Fixed attribute placement in placeholder code
This commit is contained in:
parent
208d5d18b1
commit
19f3b16446
@ -48,9 +48,6 @@ public class RPGPlaceholders extends PlaceholderExpansion /** implements Relatio
|
|||||||
else if (identifier.equals("health"))
|
else if (identifier.equals("health"))
|
||||||
return MMOCore.plugin.configManager.decimals.format(player.getHealth());
|
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"))
|
else if (identifier.equals("class"))
|
||||||
return PlayerData.get(player).getProfess().getName();
|
return PlayerData.get(player).getProfess().getName();
|
||||||
|
|
||||||
@ -85,6 +82,9 @@ public class RPGPlaceholders extends PlaceholderExpansion /** implements Relatio
|
|||||||
else if (identifier.equals("attribute_reallocation_points"))
|
else if (identifier.equals("attribute_reallocation_points"))
|
||||||
return "" + PlayerData.get(player).getAttributeReallocationPoints();
|
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"))
|
else if (identifier.equals("mana"))
|
||||||
return MMOCore.plugin.configManager.decimal.format(PlayerData.get(player).getMana());
|
return MMOCore.plugin.configManager.decimal.format(PlayerData.get(player).getMana());
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user