diff --git a/src/main/java/dev/tonimatas/perworldplugins/listener/Listeners.java b/src/main/java/dev/tonimatas/perworldplugins/listener/Listeners.java index 370c428..c20a493 100644 --- a/src/main/java/dev/tonimatas/perworldplugins/listener/Listeners.java +++ b/src/main/java/dev/tonimatas/perworldplugins/listener/Listeners.java @@ -65,7 +65,11 @@ public void onCommandPreProcess(PlayerCommandPreprocessEvent event) { commandStr = Why.whyPlugin(plugin) + ":" + commandString; } - possibleCommands.add(commandStr); + if (CommandManager.getCommands().get(commandStr) == null) { + possibleCommands.add(commandString); + } else { + possibleCommands.add(commandStr); + } } for (Command defaultCommand : CommandManager.defaultCommands) {