Fix accidential breaking change not allowing aliases to be overridden.
This commit is contained in:
@@ -112,8 +112,6 @@ public class VelocityCommandManager implements CommandManager {
|
|||||||
dispatcher.getRoot().addChild(node);
|
dispatcher.getRoot().addChild(node);
|
||||||
while (aliasIterator.hasNext()) {
|
while (aliasIterator.hasNext()) {
|
||||||
String otherAlias = aliasIterator.next();
|
String otherAlias = aliasIterator.next();
|
||||||
Preconditions.checkArgument(!hasCommand(otherAlias),
|
|
||||||
"alias %s is already registered", otherAlias);
|
|
||||||
dispatcher.getRoot().addChild(BrigadierUtils.buildRedirect(otherAlias, node));
|
dispatcher.getRoot().addChild(BrigadierUtils.buildRedirect(otherAlias, node));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user