geforkt von Mirrors/Velocity
Actually fix accidental breaking change not allowing aliases to be overridden.
Dieser Commit ist enthalten in:
Ursprung
7f1ee77a69
Commit
e3a95b4783
@ -112,6 +112,11 @@ 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();
|
||||||
|
CommandNode<CommandSource> existingNode = dispatcher.getRoot()
|
||||||
|
.getChild(alias.toLowerCase(Locale.ENGLISH));
|
||||||
|
if (existingNode != null) {
|
||||||
|
dispatcher.getRoot().getChildren().remove(existingNode);
|
||||||
|
}
|
||||||
dispatcher.getRoot().addChild(BrigadierUtils.buildRedirect(otherAlias, node));
|
dispatcher.getRoot().addChild(BrigadierUtils.buildRedirect(otherAlias, node));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren