aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/kr/syeyoung/dungeonsguide
diff options
context:
space:
mode:
authorsyeyoung <cyoung06@naver.com>2022-03-11 22:59:56 +0900
committersyeyoung <cyoung06@naver.com>2022-03-11 22:59:56 +0900
commit15b9dfa403116e43ba8e57c8d38fd5c1d39a99cf (patch)
tree842fc3362691800172f94fa6884583ceeb538417 /src/main/java/kr/syeyoung/dungeonsguide
parente3a19975c6974413a327f8ad95e4f44aac3f5d76 (diff)
downloadSkyblock-Dungeons-Guide-15b9dfa403116e43ba8e57c8d38fd5c1d39a99cf.tar.gz
Skyblock-Dungeons-Guide-15b9dfa403116e43ba8e57c8d38fd5c1d39a99cf.tar.bz2
Skyblock-Dungeons-Guide-15b9dfa403116e43ba8e57c8d38fd5c1d39a99cf.zip
<3 Hypixel v2
- Remove dash length check in PartyManager
Diffstat (limited to 'src/main/java/kr/syeyoung/dungeonsguide')
-rw-r--r--src/main/java/kr/syeyoung/dungeonsguide/chat/PartyManager.java6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/main/java/kr/syeyoung/dungeonsguide/chat/PartyManager.java b/src/main/java/kr/syeyoung/dungeonsguide/chat/PartyManager.java
index fce62813..27ec6638 100644
--- a/src/main/java/kr/syeyoung/dungeonsguide/chat/PartyManager.java
+++ b/src/main/java/kr/syeyoung/dungeonsguide/chat/PartyManager.java
@@ -133,7 +133,7 @@ public class PartyManager implements StompMessageHandler {
if (role.contains("Leader")) {
context.put("type", "member_leader");
}
- } else if (txt.equals("§9§m-----------------------------§r")) {
+ } else if (txt.startsWith("§9§m---------------------------")) {
if (memberExpected) {
PartyContext old = getPartyContext(true);
old.setPartyOwner(partyContext.getPartyOwner());
@@ -343,7 +343,7 @@ public class PartyManager implements StompMessageHandler {
getPartyContext().addRawMember(player);
}
context.put("type", "party_selfjoin_players");
- } else if (str.equals("§9§m-----------------------------§r") && joined) {
+ } else if (str.startsWith("§9§m---------------------------") && joined) {
joined = false;
getPartyContext().setRawMemberComplete(true);
joinedParty();
@@ -390,7 +390,7 @@ public class PartyManager implements StompMessageHandler {
}
public static ChatSubscriber dashShredder() {
- return (str, a) -> (int)a.get("removed") == 0 && str.equals("§9§m-----------------------------§r") ? ChatProcessResult.REMOVE_LISTENER_AND_CHAT : ChatProcessResult.NONE;
+ return (str, a) -> (int)a.get("removed") == 0 && str.startsWith("§9§m---------------------------") ? ChatProcessResult.REMOVE_LISTENER_AND_CHAT : ChatProcessResult.NONE;
}
public static ChatSubscriber typeShredder(boolean end, String... types) {