Command redirection without argument throw error even if it should be valid
Elikill58 opened this issue ยท 1 comments
Type | Version |
---|---|
Minecraft | 1.18.2 |
Loader | 0.14.5 |
Fabric | 0.53.0+1.18.2 |
I'm registering command like that:
private void registerCommand(String cmd, CommandDispatcher<ServerCommandSource> dispatcher, String... alias) {
LiteralCommandNode<ServerCommandSource> node = dispatcher
.register(CommandManager.literal(cmd).executes(new CommandsExecutorManager(cmd)));
for (String sub : alias)
dispatcher.register(CommandManager.literal(sub).redirect(node));
}
Then, I use: registerCommand("negativity", dispatcher, "neg")
.
But in chat, the command is not well founded (I made /neg then /negativity, both without any arguments):