[solved] Commands and SubCommands

Hello all.
I created two commands:
/grave (parent command);
/grave show [player] (child command).

Command “/show” working, although she is the child of the other command.
So it should be?

Watch files:
MainClass;
ParentCommand;
ChildCommand.

Try not registering the child command to the CommandDispatcher.

2 Likes

I removed line #108 in MainClass:
game.getCommandDispatcher().register(this, graveShow, "show");
All perfectly.
@DotDash, thanks.

1 Like