From 4642478d38a231ede92162c5e39f4577d36be483 Mon Sep 17 00:00:00 2001 From: syeyoung Date: Sun, 28 Feb 2021 18:25:18 +0900 Subject: a new featre --- src/main/java/kr/syeyoung/dungeonsguide/commands/CommandReparty.java | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/main/java/kr/syeyoung/dungeonsguide/commands') 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); } } -- cgit