@CommandContainer(superTypes = CommandPermissionsConditionGenerator.Registration.class)
public class FooCommands {
@Command(name = "foo", desc =" do foo")
@CommandPermissions({"do.foo"})
public void fooCmd() {
}
}
CommandManager componentManager = service.newCommandManager();
registration.register(commandManager, FooCommandsRegistration.builder(), new FooCommands());
topLevelCommandManager.registerManager(componentManager);
Registering the commands of FooCommands in this way, results in the commands being non-visible to all players, including those that have the respective permissions (do.foo), for purposes of completion.
Registering the commands of
FooCommands
in this way, results in the commands being non-visible to all players, including those that have the respective permissions (do.foo
), for purposes of completion.