aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/kr/syeyoung/dungeonsguide/commands
diff options
context:
space:
mode:
authorsyeyoung <cyong06@naver.com>2021-02-28 18:25:18 +0900
committersyeyoung <cyong06@naver.com>2021-02-28 18:25:18 +0900
commit4642478d38a231ede92162c5e39f4577d36be483 (patch)
tree071dd2221a2b6d4f5e2eaf4c6c3a29ae3d12d6ee /src/main/java/kr/syeyoung/dungeonsguide/commands
parentf792aa0a74b846da41ee27ff34e05dece2fbaea8 (diff)
downloadSkyblock-Dungeons-Guide-4642478d38a231ede92162c5e39f4577d36be483.tar.gz
Skyblock-Dungeons-Guide-4642478d38a231ede92162c5e39f4577d36be483.tar.bz2
Skyblock-Dungeons-Guide-4642478d38a231ede92162c5e39f4577d36be483.zip
a new featre
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);
}
}