Skip to content

Commit

Permalink
:3
Browse files Browse the repository at this point in the history
  • Loading branch information
catgirlseraid committed May 19, 2024
1 parent 6494776 commit 916ff22
Showing 1 changed file with 14 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,15 @@ class ArachneChatMessageHider {
"spawn",
"§c\\[BOSS] Arachne§r§f: (?:The Era of Spiders begins now\\.|Ahhhh\\.\\.\\.A Calling\\.\\.\\.)"
)
private val arachneMessageBorderPattern by patternGroup.pattern(
"border",
"§a§l▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬"
)

private val arachneDownPattern by patternGroup.pattern(
"down",
" {30}§r§6§lARACHNE DOWN!"
)

@SubscribeEvent
fun onChat(event: LorenzChatEvent) {
Expand All @@ -51,13 +60,15 @@ class ArachneChatMessageHider {
return true
}

if (message == "§a§l▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬") {
arachneMessageBorderPattern.matchMatcher(message) {
hideArachneDeadMessage = !hideArachneDeadMessage
return true
}
if (message == " §r§6§lARACHNE DOWN!") {
hideArachneDeadMessage = true

arachneDownPattern.matchMatcher(message) {
return true
}

return hideArachneDeadMessage
}

Expand Down

0 comments on commit 916ff22

Please sign in to comment.