&& (argsCount > 0 || !method.getAnnotation(NestedCommand.class).executeBody());
method.getAnnotation(NestedCommand.class); Class<?>[] nestedClasses = nested.value(); writePermissionsWikiTable(stream, Arrays.asList(nestedClasses),
@Command(aliases = {"worldguard", "wg"}, desc = "WorldGuard commands") @NestedCommand({WorldGuardCommands.class}) public void worldGuard(CommandContext args, Actor sender) {} }
@Command(aliases = {"debug"}, desc = "Debugging commands") @NestedCommand({DebugCommands.class}) public void debug(CommandContext args, CommandSender sender) throws CommandException { } }
@Command(aliases = {"cooldown", "cooldowns"}, desc = "Provides information about command cooldowns") @NestedCommand(CooldownCommands.class) public void cooldown() {} }
NestedCommand nestedCmd = method.getAnnotation(NestedCommand.class); for (Class<?> nestedCls : nestedCmd.value()) { registerMethods(nestedCls, method);
if (nestedAnnot != null && (argsCount > 0 || nestedAnnot.executeBody())) { if (argsCount == 0) { throw new MissingNestedCommandException("Sub-command required.",
@Command(aliases = {"cmdbook"}, desc = "CommandBook commands", flags = "d", min = 1, max = 3) @NestedCommand({CommandBookCommands.class}) public static void cmdBook() { } }
NestedCommand nestedCmd = method.getAnnotation(NestedCommand.class); for (Class<?> nestedCls : nestedCmd.value()) { registerMethods(nestedCls, method);
@Command(aliases = {"homes"}, desc = "Home management") @NestedCommand({ManagementCommands.class}) public void homes() throws CommandException { } }
@Command(aliases = {"warps"}, desc = "Warp management") @NestedCommand({ManagementCommands.class}) public void warps(CommandContext args, CommandSender sender) throws CommandException { } }
@Command(aliases = {"bans"}, desc = "Ban management") @NestedCommand({ManagementCommands.class}) public void bans() throws CommandException { } }
@Command(aliases = "speed", desc = "Set the speed of player movement") @NestedCommand(SpeedCommands.class) public void speed() { }
@Command(aliases = {"region", "regions", "rg"}, desc = "Region management commands") @NestedCommand({RegionCommands.class, MemberCommands.class}) public void region(CommandContext args, Actor sender) {}
@Command(aliases = {"debug"}, desc = "Debugging commands") @NestedCommand({DebuggingCommands.class}) public void debug(CommandContext args, Actor sender) {}
@Command(aliases = {"warmup", "warmups"}, desc = "Provides information about command warmups") @NestedCommand(WarmupCommands.class) public void warmup() {}