mirror of
https://github.com/darksaid98/Carbon.git
synced 2026-12-04 06:28:53 +00:00
Improve moderation docs
This commit is contained in:
1 parent
8045a71733
commit
5ed153b641
2 files changed
+2
-1
No files matched your search
@@ -51,7 +51,6 @@ public class FilterHandler implements Listener {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
for (String replacement : config.getStringList("filters.blocked-words")) {
|
for (String replacement : config.getStringList("filters.blocked-words")) {
|
||||||
for (String word : filters.getStringList(replacement)) {
|
for (String word : filters.getStringList(replacement)) {
|
||||||
if (carbonChat.getModConfig().getBoolean("filters.case-sensitive")) {
|
if (carbonChat.getModConfig().getBoolean("filters.case-sensitive")) {
|
||||||
|
|||||||
@@ -11,6 +11,7 @@ filters:
|
|||||||
case-sensitive: false
|
case-sensitive: false
|
||||||
# The keys ("****" for example) are what the text is replaced with
|
# The keys ("****" for example) are what the text is replaced with
|
||||||
# The strings in the lists ("lag" etc) are what's replaced
|
# The strings in the lists ("lag" etc) are what's replaced
|
||||||
|
# Set to filters: {} if you want to disable the filter feature.
|
||||||
filters:
|
filters:
|
||||||
# In this example, any instance of "lag" or "laggggg" will be replaced with "****"
|
# In this example, any instance of "lag" or "laggggg" will be replaced with "****"
|
||||||
"****":
|
"****":
|
||||||
@@ -20,6 +21,7 @@ filters:
|
|||||||
"_":
|
"_":
|
||||||
- "broccoli sucks"
|
- "broccoli sucks"
|
||||||
# Anything in blocked-words will prevent the message from being sent at all.
|
# Anything in blocked-words will prevent the message from being sent at all.
|
||||||
|
# Set to blocked-words: [] if you want to disable the blocked words feature.
|
||||||
blocked-words:
|
blocked-words:
|
||||||
- "pineapple doesn't belong on pizza"
|
- "pineapple doesn't belong on pizza"
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user