Dont override commands

This commit is contained in:
Jesse Boyd 2018-07-10 08:22:37 +10:00
parent c8eea3c976
commit 9a8ec501b7
No known key found for this signature in database
GPG Key ID: 59F1DE6293AF6E1F

View File

@ -69,16 +69,13 @@ public class SimpleDispatcher implements Dispatcher {
for (CommandMapping add : newDispatcher.getCommands()) { for (CommandMapping add : newDispatcher.getCommands()) {
existingDispatcher.registerCommand(add.getCallable(), add.getAllAliases()); existingDispatcher.registerCommand(add.getCallable(), add.getAllAliases());
} }
continue;
} else { } else {
Fawe.debug("Replacing commands is currently undefined behavior: " + StringMan.getString(alias)); Fawe.debug("Replacing commands is currently undefined behavior: " + StringMan.getString(alias));
return; continue;
} }
} }
} commands.putIfAbsent(lower, mapping);
for (String a : alias) {
String lower = a.toLowerCase();
commands.put(lower, mapping);
} }
} }