mirror of
https://github.com/darksaid98/Carbon.git
synced 2026-12-03 14:38:51 +00:00
Improve hook handlers
This commit is contained in:
1 parent
02feb2592d
commit
6f1b719e44
8 files changed
+74
-7
No files matched your search
+1
-1
@@ -25,7 +25,7 @@ public class FilterHandler implements Listener {
|
||||
|
||||
String filterText = moderation.getConfig().getString("filters.filter-text", "****");
|
||||
|
||||
if (channelUsesFilter(event.getChatChannel())) {
|
||||
if (channelUsesFilter(event.getChannel())) {
|
||||
for (String entry : moderation.getConfig().getStringList("filters.filtered-words")) {
|
||||
event.setMessage(event.getMessage().replaceAll(entry, filterText));
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user