diff --git a/src/main/java/me/moomoo/anarchyexploitfixes/modules/chat/PreventPluginScanning.java b/src/main/java/me/moomoo/anarchyexploitfixes/modules/chat/PreventPluginScanning.java index 06889619a..0eacd1a76 100644 --- a/src/main/java/me/moomoo/anarchyexploitfixes/modules/chat/PreventPluginScanning.java +++ b/src/main/java/me/moomoo/anarchyexploitfixes/modules/chat/PreventPluginScanning.java @@ -40,6 +40,7 @@ private static boolean isSuspectedScanPacket(String buffer) { @EventHandler(priority = EventPriority.HIGHEST) private void onAsyncCommandTabComplete(AsyncTabCompleteEvent event) { + if (event.getSender().hasPermission("anarchyexploitfixes.chatbypass")) return; if (!(event.getSender() instanceof Player)) return; if (isSuspectedScanPacket(event.getBuffer())) { event.setCancelled(true); @@ -48,6 +49,7 @@ private void onAsyncCommandTabComplete(AsyncTabCompleteEvent event) { @EventHandler(priority = EventPriority.NORMAL) private void onCommandTabComplete(TabCompleteEvent event) { + if (event.getSender().hasPermission("anarchyexploitfixes.chatbypass")) return; if (!(event.getSender() instanceof Player)) return; if (isSuspectedScanPacket(event.getBuffer())) { event.setCancelled(true);