From 622455268a373a19bf79206bc4fdab0126bd23b7 Mon Sep 17 00:00:00 2001 From: Indyuce Date: Fri, 20 Aug 2021 12:03:27 +0200 Subject: [PATCH] new party members count placeholder --- .../net/Indyuce/mmocore/comp/placeholder/RPGPlaceholders.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/main/java/net/Indyuce/mmocore/comp/placeholder/RPGPlaceholders.java b/src/main/java/net/Indyuce/mmocore/comp/placeholder/RPGPlaceholders.java index 2cd68388..b2a2b4dd 100644 --- a/src/main/java/net/Indyuce/mmocore/comp/placeholder/RPGPlaceholders.java +++ b/src/main/java/net/Indyuce/mmocore/comp/placeholder/RPGPlaceholders.java @@ -106,6 +106,9 @@ public class RPGPlaceholders extends PlaceholderExpansion { return "" + PlayerData.get(player).getCollectionSkills() .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_")) return String .valueOf(playerData.getCollectionSkills().getLevel(identifier.substring(11).replace(" ", "-").replace("_", "-").toLowerCase()));