diff --git a/core/src/main/java/com/sk89q/worldedit/util/command/SimpleDispatcher.java b/core/src/main/java/com/sk89q/worldedit/util/command/SimpleDispatcher.java index bc8644e5..80e68ad5 100644 --- a/core/src/main/java/com/sk89q/worldedit/util/command/SimpleDispatcher.java +++ b/core/src/main/java/com/sk89q/worldedit/util/command/SimpleDispatcher.java @@ -69,16 +69,13 @@ public class SimpleDispatcher implements Dispatcher { for (CommandMapping add : newDispatcher.getCommands()) { existingDispatcher.registerCommand(add.getCallable(), add.getAllAliases()); } + continue; } else { Fawe.debug("Replacing commands is currently undefined behavior: " + StringMan.getString(alias)); - return; + continue; } } - } - - for (String a : alias) { - String lower = a.toLowerCase(); - commands.put(lower, mapping); + commands.putIfAbsent(lower, mapping); } }