Mirror von
https://github.com/PaperMC/Velocity.git
synchronisiert 2024-11-17 13:30:17 +01:00
Hints will override the default catch-all by default
Dieser Commit ist enthalten in:
Ursprung
ae0bf6cfca
Commit
65e1b7be87
@ -101,8 +101,13 @@ public class VelocityCommandManager implements CommandManager {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (!(command instanceof BrigadierCommand)) {
|
if (!(command instanceof BrigadierCommand)) {
|
||||||
for (CommandNode<CommandSource> hint : meta.getHints()) {
|
if (!meta.getHints().isEmpty()) {
|
||||||
node.addChild(BrigadierUtils.wrapForHinting(hint, node.getCommand()));
|
// If the user specified a hint, then allow the hint to take precedence over the catch-all
|
||||||
|
// argument.
|
||||||
|
node.getChildren().clear();
|
||||||
|
for (CommandNode<CommandSource> hint : meta.getHints()) {
|
||||||
|
node.addChild(BrigadierUtils.wrapForHinting(hint, node.getCommand()));
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren