Skip to content
This repository has been archived by the owner on Jan 20, 2024. It is now read-only.

Commit

Permalink
SwearProtection: update lists on reload
Browse files Browse the repository at this point in the history
  • Loading branch information
TheFaser committed Dec 17, 2023
1 parent 4a76658 commit bb70d20
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
import net.flectone.chat.module.FModule;
import net.flectone.chat.module.integrations.IntegrationsModule;
import net.flectone.chat.util.MessageUtil;
import net.flectone.chat.util.SwearUtil;
import org.apache.commons.lang.StringUtils;
import org.apache.commons.lang.math.NumberUtils;
import org.bukkit.command.Command;
Expand Down Expand Up @@ -119,6 +120,9 @@ public boolean onCommand(@NotNull CommandSender commandSender, @NotNull Command
plugin.getPlayerManager().loadOnlinePlayers();
plugin.getPlayerManager().loadTabCompleteData();

SwearUtil.loadSwearsList();
SwearUtil.loadSwearsRegex();

sendDefaultMessage(commandSender, this + ".message");

if (!cmdSettings.isConsole()) {
Expand Down

0 comments on commit bb70d20

Please sign in to comment.