aboutsummaryrefslogtreecommitdiff
path: root/src/main/kotlin/cc/woverflow/chatting/config/ChattingConfig.kt
diff options
context:
space:
mode:
authorKendell R <KTibow@users.noreply.github.com>2022-05-01 07:47:57 -0700
committerKendell R <KTibow@users.noreply.github.com>2022-05-01 07:48:17 -0700
commit2eded39259f3b717cce1a58e7fdabf6852ffdfcb (patch)
tree3acdef2a8f67a54ed9a1ab6e1414bb0953268438 /src/main/kotlin/cc/woverflow/chatting/config/ChattingConfig.kt
parentd3b3d5273d6754c991d6ba9a69884071a8e56c91 (diff)
downloadChatting-2eded39259f3b717cce1a58e7fdabf6852ffdfcb.tar.gz
Chatting-2eded39259f3b717cce1a58e7fdabf6852ffdfcb.tar.bz2
Chatting-2eded39259f3b717cce1a58e7fdabf6852ffdfcb.zip
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.kt26
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 93a8723..24729be 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 = "Custom Chat Height",
description = "Allows you to change the height of chat to heights greater than before.",