12.07.2015, 21:12
@DrumYum: Thank you for your support.
I think your problem is happening, because of an internal bug in shoebill-common's CommandManager. Before this is fixed, you can try to register your commands without an BeforeChecker with the normal .registerCommands() method of the CommandManager, like this:
but keep your commands with a BeforeChecker in a separate CommandGroup:
If this doesn't work, you should try to use a prefix:
I think your problem is happening, because of an internal bug in shoebill-common's CommandManager. Before this is fixed, you can try to register your commands without an BeforeChecker with the normal .registerCommands() method of the CommandManager, like this:
Код:
commandManager.registerCommands(new TDMCommands(playerLifecycleHolder, eventManagerNode));
Код:
adminCommandGroup = new CommandGroup(); adminCommandGroup.registerCommands(new AdminCommands(playerLifecycleHolder)); commandManager.registerGroup(adminCommandGroup);
Код:
commandManager.registerChildGroup(adminCommandGroup, "a"); //Commands now available with: /a kick etc.