From 5ed153b6410450d0576999def7a207f7ae6ea211 Mon Sep 17 00:00:00 2001 From: Draycia Date: Thu, 3 Sep 2020 23:29:15 -0700 Subject: [PATCH] Improve moderation docs --- src/main/java/net/draycia/carbon/listeners/FilterHandler.java | 1 - src/main/resources/moderation.yml | 2 ++ 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main/java/net/draycia/carbon/listeners/FilterHandler.java b/src/main/java/net/draycia/carbon/listeners/FilterHandler.java index 46ac81d3..dcab82fb 100644 --- a/src/main/java/net/draycia/carbon/listeners/FilterHandler.java +++ b/src/main/java/net/draycia/carbon/listeners/FilterHandler.java @@ -51,7 +51,6 @@ public class FilterHandler implements Listener { } } - for (String replacement : config.getStringList("filters.blocked-words")) { for (String word : filters.getStringList(replacement)) { if (carbonChat.getModConfig().getBoolean("filters.case-sensitive")) { diff --git a/src/main/resources/moderation.yml b/src/main/resources/moderation.yml index 1f4b0113..de25a2c2 100644 --- a/src/main/resources/moderation.yml +++ b/src/main/resources/moderation.yml @@ -11,6 +11,7 @@ filters: case-sensitive: false # The keys ("****" for example) are what the text is replaced with # The strings in the lists ("lag" etc) are what's replaced + # Set to filters: {} if you want to disable the filter feature. filters: # In this example, any instance of "lag" or "laggggg" will be replaced with "****" "****": @@ -20,6 +21,7 @@ filters: "_": - "broccoli sucks" # 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: - "pineapple doesn't belong on pizza"