diff options
author | hannibal2 <24389977+hannibal00212@users.noreply.github.com> | 2023-12-08 12:44:43 +0100 |
---|---|---|
committer | hannibal2 <24389977+hannibal00212@users.noreply.github.com> | 2023-12-08 12:44:43 +0100 |
commit | 6aaf8e71d1264b7e2205bce0f270a5adc6cda0ac (patch) | |
tree | dd5ecaed1ed25cb73f9372c730b3258169761619 /src/main/java | |
parent | 993253d4c7afdb12aea77676f06651b34b895fd8 (diff) | |
download | skyhanni-6aaf8e71d1264b7e2205bce0f270a5adc6cda0ac.tar.gz skyhanni-6aaf8e71d1264b7e2205bce0f270a5adc6cda0ac.tar.bz2 skyhanni-6aaf8e71d1264b7e2205bce0f270a5adc6cda0ac.zip |
Added "fire sale starting soon" message to fire sale chat hider.
Diffstat (limited to 'src/main/java')
-rw-r--r-- | src/main/java/at/hannibal2/skyhanni/features/chat/ChatFilter.kt | 7 |
1 files changed, 4 insertions, 3 deletions
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) { |