diff options
author | Ethan <git@ethanlibs.co> | 2022-05-06 16:20:03 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-05-06 16:20:03 -0400 |
commit | a1498a9b8efe31841441a6f2152937dddf75a474 (patch) | |
tree | c33b479d7145643fb660b973991e9a43afe6dff7 /src/main/kotlin/cc/woverflow/chatting/config/ChattingConfig.kt | |
parent | dae58987b89bc01fa2828b5f4840a594f416f592 (diff) | |
parent | 2eded39259f3b717cce1a58e7fdabf6852ffdfcb (diff) | |
download | Chatting-a1498a9b8efe31841441a6f2152937dddf75a474.tar.gz Chatting-a1498a9b8efe31841441a6f2152937dddf75a474.tar.bz2 Chatting-a1498a9b8efe31841441a6f2152937dddf75a474.zip |
Merge pull request #6 from KTibow/main
feat: spam block
Diffstat (limited to 'src/main/kotlin/cc/woverflow/chatting/config/ChattingConfig.kt')
-rw-r--r-- | src/main/kotlin/cc/woverflow/chatting/config/ChattingConfig.kt | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/src/main/kotlin/cc/woverflow/chatting/config/ChattingConfig.kt b/src/main/kotlin/cc/woverflow/chatting/config/ChattingConfig.kt index e80fa94..d1a6ae9 100644 --- a/src/main/kotlin/cc/woverflow/chatting/config/ChattingConfig.kt +++ b/src/main/kotlin/cc/woverflow/chatting/config/ChattingConfig.kt @@ -79,6 +79,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 = "Show Timestamp", description = "Show message timestamp on hover.", |