mirror of
https://github.com/boy0001/FastAsyncWorldedit.git
synced 2024-12-28 03:57:38 +01:00
Dont override commands
This commit is contained in:
parent
c8eea3c976
commit
9a8ec501b7
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user