diff options
author | syeyoung <cyoung06@naver.com> | 2021-10-04 15:41:35 +0900 |
---|---|---|
committer | syeyoung <cyoung06@naver.com> | 2021-10-04 15:41:35 +0900 |
commit | 523420265f95cb5e5e60e1749ced74a9082e75dd (patch) | |
tree | 513ef001cc4ea62d7892ecd646485a6cb47fa92a /src/main/java/kr | |
parent | a971611398de71a0d46ae093fb4e78af4acc7604 (diff) | |
download | Skyblock-Dungeons-Guide-523420265f95cb5e5e60e1749ced74a9082e75dd.tar.gz Skyblock-Dungeons-Guide-523420265f95cb5e5e60e1749ced74a9082e75dd.tar.bz2 Skyblock-Dungeons-Guide-523420265f95cb5e5e60e1749ced74a9082e75dd.zip |
- Member count in pf
Diffstat (limited to 'src/main/java/kr')
-rw-r--r-- | src/main/java/kr/syeyoung/dungeonsguide/features/impl/party/customgui/PanelPartyListElement.java | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/main/java/kr/syeyoung/dungeonsguide/features/impl/party/customgui/PanelPartyListElement.java b/src/main/java/kr/syeyoung/dungeonsguide/features/impl/party/customgui/PanelPartyListElement.java index 9b8ff119..a64eb3b8 100644 --- a/src/main/java/kr/syeyoung/dungeonsguide/features/impl/party/customgui/PanelPartyListElement.java +++ b/src/main/java/kr/syeyoung/dungeonsguide/features/impl/party/customgui/PanelPartyListElement.java @@ -73,6 +73,7 @@ public class PanelPartyListElement extends MPanel { boolean cantjoin = false; if (itemStack.getItem() == Item.getItemFromBlock(Blocks.bedrock)) cantjoin = true; int minClass = -1, minDungeon = -1; + int pplIn = 0; { NBTTagCompound stackTagCompound = itemStack.getTagCompound(); if (stackTagCompound.hasKey("display", 10)) { @@ -90,6 +91,7 @@ public class PanelPartyListElement extends MPanel { } else if (str.startsWith("§7Dungeon Level Required: §b")) { minDungeon = Integer.parseInt(str.substring(28)); } else if (str.startsWith("§cRequires ")) cantjoin = true; + if (str.endsWith("§b)")) pplIn ++; } } } @@ -136,11 +138,12 @@ public class PanelPartyListElement extends MPanel { name = name.substring(0, name.indexOf("'")); fr.drawString(name, 0,0,-1); - fr.drawString(note, fr.getStringWidth("AAAAAAAAAAAAAAAAAA")+5, 0,-1); + note = "§7("+pplIn+") §f"+note; + fr.drawString(note, fr.getStringWidth("AAAAAAAAAAAAAAAA")+5, 0,-1); GlStateManager.popMatrix(); GlStateManager.pushMatrix(); String sideNote = ""; - if (minClass != -1) sideNote = "§7CLv ≥§b"+minClass+" "; + if (minClass != -1) sideNote += "§7CLv ≥§b"+minClass+" "; if (minDungeon != -1) sideNote += "§7DLv ≥§b"+minDungeon+" "; if (cantjoin) sideNote = "§cCan't join"; sideNote = sideNote.trim(); |