From 5b4f020ec6aaae0afea309b772bf89fb1493e4d3 Mon Sep 17 00:00:00 2001 From: CalMWolfs <94038482+CalMWolfs@users.noreply.github.com> Date: Tue, 26 Sep 2023 19:10:10 +1000 Subject: More party messages support #505 * party time :tada: --- src/main/java/at/hannibal2/skyhanni/data/PartyAPI.kt | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/main/java/at/hannibal2/skyhanni/data/PartyAPI.kt b/src/main/java/at/hannibal2/skyhanni/data/PartyAPI.kt index 1cf79bf02..e00ea2c51 100644 --- a/src/main/java/at/hannibal2/skyhanni/data/PartyAPI.kt +++ b/src/main/java/at/hannibal2/skyhanni/data/PartyAPI.kt @@ -66,7 +66,10 @@ class PartyAPI { val name = group("name").cleanPlayerName() partyMembers.remove(name) } - + "The party was transferred to .* because (?.*) left".toPattern().matchMatcher(message.removeColor()) { + val name = group("name").cleanPlayerName() + partyMembers.remove(name) + } // party disbanded ".* §ehas disbanded the party!".toPattern().matchMatcher(message) { @@ -83,6 +86,10 @@ class PartyAPI { } // party list + "§6Party Members \\(\\d+\\)".toPattern().matchMatcher(message.removeResets()) { + partyMembers.clear() + } + "Party (?:Leader|Moderators|Members): (?.*)".toPattern().matchMatcher(message.removeColor()) { for (name in group("names").split(" ● ")) { val playerName = name.replace(" ●", "").cleanPlayerName() -- cgit