Add 'punish' filter and automatic banning functionality

Extended the RegexManager filterText method to include a 'punish' case that triggers an automatic ban for users who violate the filter. This commit also updates the PluginMessageListener to handle 'punish' commands, thus completing the execution of an auto-ban function.
This commit is contained in:
2024-03-02 19:18:13 +01:00
parent 8a5b407359
commit bd8fa02f1e
4 changed files with 51 additions and 7 deletions
@@ -5,7 +5,8 @@ public enum FilterType {
EMOTE("emote"),
CHAT("chat"),
REPLACEMATCHER("replacematcher"),
BLOCK("block");
BLOCK("block"),
PUNISH("punish");
private final String name;