diff options
author | Lorenz <ESs95s3P5z8Pheb> | 2022-07-09 00:29:54 +0200 |
---|---|---|
committer | Lorenz <ESs95s3P5z8Pheb> | 2022-07-09 00:29:54 +0200 |
commit | 0d3c6f6c95fe3574d1da5d75f344dac459a3b241 (patch) | |
tree | e16ea7aa7c231581f62382bb8c19a96608f919f8 /src/main/java/at/lorenz/mod/chat | |
parent | e480239b6816e115208102e136052c3686a79a1c (diff) | |
download | skyhanni-0d3c6f6c95fe3574d1da5d75f344dac459a3b241.tar.gz skyhanni-0d3c6f6c95fe3574d1da5d75f344dac459a3b241.tar.bz2 skyhanni-0d3c6f6c95fe3574d1da5d75f344dac459a3b241.zip |
split off the chat filter settings
Diffstat (limited to 'src/main/java/at/lorenz/mod/chat')
-rw-r--r-- | src/main/java/at/lorenz/mod/chat/ChatFilter.kt | 36 |
1 files changed, 18 insertions, 18 deletions
diff --git a/src/main/java/at/lorenz/mod/chat/ChatFilter.kt b/src/main/java/at/lorenz/mod/chat/ChatFilter.kt index be2c080bd..fed9f34b3 100644 --- a/src/main/java/at/lorenz/mod/chat/ChatFilter.kt +++ b/src/main/java/at/lorenz/mod/chat/ChatFilter.kt @@ -10,7 +10,7 @@ class ChatFilter { @SubscribeEvent fun onChatMessage(event: LorenzChatEvent) { - if (!LorenzMod.feature.chat.mainFilter) return +// if (!LorenzMod.feature.chat.chatFilterAll) return val blockReason = block(event.message) if (blockReason != "") { @@ -20,23 +20,23 @@ class ChatFilter { private fun block(message: String): String = when { message.startsWith("§aYou are playing on profile: §e") -> "profile"//TODO move into own class - lobby(message) -> "lobby" - empty(message) -> "empty" - warping(message) -> "warping" - welcome(message) -> "welcome" - guild(message) -> "guild" - killCombo(message) -> "kill_combo" - bazaarAndAHMiniMessages(message) -> "bz_ah_minis" - watchdogAnnouncement(message) -> "watchdog" - slayer(message) -> "slayer" - slayerDrop(message) -> "slayer_drop" - uselessDrop(message) -> "useless_drop" - uselessNotification(message) -> "useless_notification" - party(message) -> "party" - money(message) -> "money" - winterIsland(message) -> "winter_island" - uselessWarning(message) -> "useless_warning" - friendJoin(message) -> "friend_join" + lobby(message) && LorenzMod.feature.chat.hypixelHub -> "lobby" + empty(message) && LorenzMod.feature.chat.empty -> "empty" + warping(message) && LorenzMod.feature.chat.warping -> "warping" + welcome(message) && LorenzMod.feature.chat.welcome -> "welcome" + guild(message) && LorenzMod.feature.chat.others -> "guild" + killCombo(message) && LorenzMod.feature.chat.others -> "kill_combo" + bazaarAndAHMiniMessages(message) && LorenzMod.feature.chat.others -> "bz_ah_minis" + watchdogAnnouncement(message) && LorenzMod.feature.chat.others -> "watchdog" + slayer(message) && LorenzMod.feature.chat.others -> "slayer" + slayerDrop(message) && LorenzMod.feature.chat.others -> "slayer_drop" + uselessDrop(message) && LorenzMod.feature.chat.others -> "useless_drop" + uselessNotification(message) && LorenzMod.feature.chat.others -> "useless_notification" + party(message) && LorenzMod.feature.chat.others -> "party" + money(message) && LorenzMod.feature.chat.others -> "money" + winterIsland(message) && LorenzMod.feature.chat.others -> "winter_island" + uselessWarning(message) && LorenzMod.feature.chat.others -> "useless_warning" + friendJoin(message) && LorenzMod.feature.chat.others -> "friend_join" else -> "" |