aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/at/hannibal2
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/java/at/hannibal2')
-rw-r--r--src/main/java/at/hannibal2/skyhanni/data/PartyAPI.kt9
1 files changed, 0 insertions, 9 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/data/PartyAPI.kt b/src/main/java/at/hannibal2/skyhanni/data/PartyAPI.kt
index 21f76998c..126487247 100644
--- a/src/main/java/at/hannibal2/skyhanni/data/PartyAPI.kt
+++ b/src/main/java/at/hannibal2/skyhanni/data/PartyAPI.kt
@@ -17,51 +17,42 @@ class PartyAPI {
"§eYou have joined §r(?<name>.*)'s §r§eparty!".toPattern().matchMatcher(message) {
val name = group("name").cleanPlayerName()
partyMembers.add(name)
- println("partyMembers: $partyMembers")
}
"(?<name>.*) §r§ejoined the party.".toPattern().matchMatcher(message) {
val name = group("name").cleanPlayerName()
partyMembers.add(name)
- println("partyMembers: $partyMembers")
}
"§eYou'll be partying with: §r(?<names>.*)".toPattern().matchMatcher(message) {
for (name in group("names").split(", ")) {
partyMembers.add(name.cleanPlayerName())
}
- println("partyMembers: $partyMembers")
}
// one member got removed
"(?<name>.*) §r§ehas left the party.".toPattern().matchMatcher(message) {
val name = group("name").cleanPlayerName()
partyMembers.remove(name)
- println("partyMembers: $partyMembers")
}
"(?<name>.*) §r§ehas been removed from the party.".toPattern().matchMatcher(message) {
val name = group("name").cleanPlayerName()
partyMembers.remove(name)
- println("partyMembers: $partyMembers")
}
"(?<name>.*) neuberddo§r§e because they were offline.".toPattern().matchMatcher(message) {
val name = group("name").cleanPlayerName()
partyMembers.remove(name)
- println("partyMembers: $partyMembers")
}
// party disbanded
".* §r§ehas disbanded the party!".toPattern().matchMatcher(message) {
partyMembers.clear()
- println("partyMembers: $partyMembers")
}
"§eYou have been kicked from the party by §r.* §r§e".toPattern().matchMatcher(message) {
partyMembers.clear()
- println("partyMembers: $partyMembers")
}
if (message == "§eYou left the party." ||
message == "§cThe party was disbanded because all invites expired and the party was empty."
) {
partyMembers.clear()
- println("partyMembers: $partyMembers")
}
}
}