From 6aaf8e71d1264b7e2205bce0f270a5adc6cda0ac Mon Sep 17 00:00:00 2001 From: hannibal2 <24389977+hannibal00212@users.noreply.github.com> Date: Fri, 8 Dec 2023 12:44:43 +0100 Subject: Added "fire sale starting soon" message to fire sale chat hider. --- src/main/java/at/hannibal2/skyhanni/features/chat/ChatFilter.kt | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'src/main/java/at') diff --git a/src/main/java/at/hannibal2/skyhanni/features/chat/ChatFilter.kt b/src/main/java/at/hannibal2/skyhanni/features/chat/ChatFilter.kt index 3c6614e1f..82ec7d0c5 100644 --- a/src/main/java/at/hannibal2/skyhanni/features/chat/ChatFilter.kt +++ b/src/main/java/at/hannibal2/skyhanni/features/chat/ChatFilter.kt @@ -294,7 +294,8 @@ class ChatFilter { private val fireSalePatterns = listOf( "§c♨ §eFire Sales for .* §eare starting soon!".toPattern(), "§c {3}♨ .* Skin §e\\(.* §eleft\\)§c".toPattern(), - "§c♨ §eVisit the Community Shop in the next §c.* §eto grab yours! §a§l\\[WARP]".toPattern() + "§c♨ §eVisit the Community Shop in the next §c.* §eto grab yours! §a§l\\[WARP]".toPattern(), + "§c♨ §eA Fire Sale for .* §eis starting soon!".toPattern(), ) private val powderMiningMessages = listOf( "§aYou uncovered a treasure chest!", @@ -431,8 +432,8 @@ class ChatFilter { */ private fun String.isPresent(key: String) = this in (messagesMap[key] ?: emptyList()) || (patternsMap[key] ?: emptyList()).any { it.matches(this) } || - (messagesContainsMap[key] ?: emptyList()).any { this.contains(it) } || - (messagesStartsWithMap[key] ?: emptyList()).any { this.startsWith(it) } + (messagesContainsMap[key] ?: emptyList()).any { this.contains(it) } || + (messagesStartsWithMap[key] ?: emptyList()).any { this.startsWith(it) } @SubscribeEvent fun onConfigFix(event: ConfigUpdaterMigrator.ConfigFixEvent) { -- cgit