25.06.2015, 20:33
@DrumYum: If you register a child group, Shoebill will use a specific path to handle these commands. For example, if you register a CommandGroup with Admin-Commands, you can specific a prefix for them:
Now, every admin command (e.g. kick, ban, set money) is reachable under the prefix "a":
/a kick
/a ban
/a ...
And please show me your BeforeCheck method, make sure that you add the @BeforeCheck Annotation on the method and make sure that your BeforeCheck-Method has the following parameters:
beforeCheck(Player p, String cmd, String params)
Код:
CommandGroup adminGroup = new CommandGroup(); adminGroup.registerCommands(new AdminCommands()); commandManager.registerChildGroup(adminGroup, "a");
/a kick
/a ban
/a ...
And please show me your BeforeCheck method, make sure that you add the @BeforeCheck Annotation on the method and make sure that your BeforeCheck-Method has the following parameters:
beforeCheck(Player p, String cmd, String params)