aboutsummaryrefslogtreecommitdiff
path: root/src/main
diff options
context:
space:
mode:
authorCalMWolfs <94038482+CalMWolfs@users.noreply.github.com>2023-09-26 19:10:10 +1000
committerGitHub <noreply@github.com>2023-09-26 11:10:10 +0200
commit5b4f020ec6aaae0afea309b772bf89fb1493e4d3 (patch)
treec7c588f384dffc00805a876f91337437a7c50bb9 /src/main
parent76487bde40e0e9e60684e42c5b6b4ef2c7781287 (diff)
downloadskyhanni-5b4f020ec6aaae0afea309b772bf89fb1493e4d3.tar.gz
skyhanni-5b4f020ec6aaae0afea309b772bf89fb1493e4d3.tar.bz2
skyhanni-5b4f020ec6aaae0afea309b772bf89fb1493e4d3.zip
More party messages support #505
* party time :tada:
Diffstat (limited to 'src/main')
-rw-r--r--src/main/java/at/hannibal2/skyhanni/data/PartyAPI.kt9
1 files changed, 8 insertions, 1 deletions
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 (?<name>.*) 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): (?<names>.*)".toPattern().matchMatcher(message.removeColor()) {
for (name in group("names").split(" ● ")) {
val playerName = name.replace(" ●", "").cleanPlayerName()