Mirror von
https://github.com/PaperMC/Velocity.git
synchronisiert 2024-11-17 05:20:14 +01:00
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