geforkt von Mirrors/Velocity
Fix accidential breaking change not allowing aliases to be overridden.
Dieser Commit ist enthalten in:
Ursprung
306221a92f
Commit
7f1ee77a69
@ -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));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren