diff --git a/src/main/java/xyz/etztech/minecraftmanager/listeners/CommandPreprocessListener.java b/src/main/java/xyz/etztech/minecraftmanager/listeners/CommandPreprocessListener.java index df40975..736d6bc 100644 --- a/src/main/java/xyz/etztech/minecraftmanager/listeners/CommandPreprocessListener.java +++ b/src/main/java/xyz/etztech/minecraftmanager/listeners/CommandPreprocessListener.java @@ -79,7 +79,8 @@ public class CommandPreprocessListener implements Listener { hasReadRules.add(sender.getUniqueId().toString()); } else if ("apply".equalsIgnoreCase(base)) { - if(!hasReadRules.remove(sender.getUniqueId().toString())) { + if(!hasReadRules.contains(sender.getUniqueId().toString())) { + event.setCancelled(true); sender.spigot().sendMessage(new TextComponent(ChatColor.RED + "Make sure to check /rules before applying!")); } }