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
1 changed files with 3 additions and 6 deletions

View File

@ -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);
}
}