From 2eded39259f3b717cce1a58e7fdabf6852ffdfcb Mon Sep 17 00:00:00 2001 From: Kendell R Date: Sun, 1 May 2022 07:47:57 -0700 Subject: feat: spam block --- .../cc/woverflow/chatting/config/ChattingConfig.kt | 26 ++++++++++++++++++++++ 1 file changed, 26 insertions(+) (limited to 'src/main/kotlin/cc/woverflow/chatting/config') diff --git a/src/main/kotlin/cc/woverflow/chatting/config/ChattingConfig.kt b/src/main/kotlin/cc/woverflow/chatting/config/ChattingConfig.kt index 93a8723..24729be 100644 --- a/src/main/kotlin/cc/woverflow/chatting/config/ChattingConfig.kt +++ b/src/main/kotlin/cc/woverflow/chatting/config/ChattingConfig.kt @@ -78,6 +78,32 @@ object ChattingConfig : ) var informForAlternatives = true + @Property( + type = PropertyType.SLIDER, + min = 0, + max = 100, + name = "Spam Threshold", + description = "If Chatting detects a player message seems like spam, and the probability is above this threshold, it will hide it. Set to 0 to disable.", + category = "Player Spam Blocker" + ) + var spamThreshold = 95 + + @Property( + type = PropertyType.SWITCH, + name = "Show Spam (with styling)", + description = "Show messages Chatting detects as spam in gray, instead of hiding them.", + category = "Player Spam Blocker" + ) + var showSpamInGray = true + + @Property( + type = PropertyType.SWITCH, + name = "Custom Message Formatting", + description = "Hide ranks, and show messages in public chat from no-ranks as white.", + category = "Player Spam Blocker" + ) + var customFormatting = false + @Property( type = PropertyType.SWITCH, name = "Custom Chat Height", -- cgit