forked from Upstream/mmocore
new party members count placeholder
This commit is contained in:
parent
564a5dede3
commit
622455268a
@ -106,6 +106,9 @@ public class RPGPlaceholders extends PlaceholderExpansion {
|
|||||||
return "" + PlayerData.get(player).getCollectionSkills()
|
return "" + PlayerData.get(player).getCollectionSkills()
|
||||||
.getLevelUpExperience(identifier.substring(22).replace(" ", "-").replace("_", "-").toLowerCase());
|
.getLevelUpExperience(identifier.substring(22).replace(" ", "-").replace("_", "-").toLowerCase());
|
||||||
|
|
||||||
|
else if (identifier.startsWith("party_count"))
|
||||||
|
return playerData.hasParty() ? String.valueOf(playerData.getParty().getMembers().count()) : "0";
|
||||||
|
|
||||||
else if (identifier.startsWith("profession_"))
|
else if (identifier.startsWith("profession_"))
|
||||||
return String
|
return String
|
||||||
.valueOf(playerData.getCollectionSkills().getLevel(identifier.substring(11).replace(" ", "-").replace("_", "-").toLowerCase()));
|
.valueOf(playerData.getCollectionSkills().getLevel(identifier.substring(11).replace(" ", "-").replace("_", "-").toLowerCase()));
|
||||||
|
Loading…
Reference in New Issue
Block a user