aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/kr/syeyoung/dungeonsguide/commands
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/java/kr/syeyoung/dungeonsguide/commands')
-rw-r--r--src/main/java/kr/syeyoung/dungeonsguide/commands/CommandReparty.java2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/main/java/kr/syeyoung/dungeonsguide/commands/CommandReparty.java b/src/main/java/kr/syeyoung/dungeonsguide/commands/CommandReparty.java
index a66ab6f9..78a3bb9d 100644
--- a/src/main/java/kr/syeyoung/dungeonsguide/commands/CommandReparty.java
+++ b/src/main/java/kr/syeyoung/dungeonsguide/commands/CommandReparty.java
@@ -69,10 +69,12 @@ public class CommandReparty extends CommandBase {
String txt = e.message.getFormattedText();
if (txt.startsWith("§eParty ") && txt.contains(":")) {
String playerNames = TextUtils.stripColor(txt.split(":")[1]);
+ String myname = Minecraft.getMinecraft().getSession().getUsername();
for (String s : playerNames.split(" ")) {
if (s.isEmpty()) continue;
if (s.equals("●")) continue;
if (s.startsWith("[")) continue;
+ if (s.equalsIgnoreCase(myname)) continue;
players.add(s);
}
}