From 0aa43821fdecf69c9548db1afa8ff9b5e1015c5b Mon Sep 17 00:00:00 2001 From: syeyoung Date: Fri, 6 May 2022 22:37:31 +0900 Subject: - Add party kick message to party status detection - Fix You are not in a party not getting detected correctly. --- src/main/java/kr/syeyoung/dungeonsguide/chat/PartyManager.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/main/java/kr/syeyoung/dungeonsguide/chat') diff --git a/src/main/java/kr/syeyoung/dungeonsguide/chat/PartyManager.java b/src/main/java/kr/syeyoung/dungeonsguide/chat/PartyManager.java index 27ec6638..3053c74c 100644 --- a/src/main/java/kr/syeyoung/dungeonsguide/chat/PartyManager.java +++ b/src/main/java/kr/syeyoung/dungeonsguide/chat/PartyManager.java @@ -70,7 +70,8 @@ public class PartyManager implements StompMessageHandler { || str.equals("§cYou are not in a party and were moved to the ALL channel.§r") || str.startsWith("§cThe party was disbanded") || str.endsWith("§ehas disbanded the party!§r") - || str.endsWith("§cYou are not in a party")) { + || str.startsWith("§cYou are not in a party") + || str.startsWith("§eYou have been kicked from the party by ")) { leaveParty(); for (Consumer partyContextConsumer : partyBuiltCallback) { -- cgit