Closed robmart closed 1 month ago
var exitNode = dispatcher.Register(command => command.Literal("exit") .Executes(_ => Execute()) ); dispatcher.Register(command => command.Literal("quit").Redirect(exitNode));
The above code will result in an exception when attempting to run the command quit, because quit is not a command. Seems like redirects are ignored entirely when executing.
quit
This is apparently intended behavior? It is at least consistent with brigadier Mojang/brigadier#46
The above code will result in an exception when attempting to run the command
quit
, becausequit
is not a command. Seems like redirects are ignored entirely when executing.