public static class CommandWithSubcommands.Builder extends Subcommand.Builder<CommandWithSubcommands.Builder>
Modifier and Type | Method and Description |
---|---|
CommandWithSubcommands |
build() |
CommandWithSubcommands.Builder |
colorScheme(com.djrapitops.plugin.command.ColorScheme colors) |
CommandWithSubcommands.Builder |
exceptionHandler(TriConsumer<java.lang.RuntimeException,CMDSender,Arguments> exceptionHandler) |
CommandWithSubcommands.Builder |
fallback(java.util.function.BiConsumer<CMDSender,Arguments> executor) |
CommandWithSubcommands.Builder |
fallbackOrHelpFallback(java.util.function.BiPredicate<CMDSender,Arguments> canBeUsed,
java.util.function.BiConsumer<CMDSender,Arguments> executor) |
CommandWithSubcommands.Builder |
subcommand(Subcommand subcommand) |
CommandWithSubcommands.Builder |
subcommandOnCondition(boolean condition,
Subcommand subcommand) |
alias, aliases, description, inDepthDescription, onCommand, onTabComplete, optionalArgument, requiredArgument, requirePermission
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
inDepthDescription, requirePermission
public CommandWithSubcommands.Builder subcommand(Subcommand subcommand)
public CommandWithSubcommands.Builder subcommandOnCondition(boolean condition, Subcommand subcommand)
public CommandWithSubcommands.Builder fallback(java.util.function.BiConsumer<CMDSender,Arguments> executor)
public CommandWithSubcommands.Builder fallbackOrHelpFallback(java.util.function.BiPredicate<CMDSender,Arguments> canBeUsed, java.util.function.BiConsumer<CMDSender,Arguments> executor)
public CommandWithSubcommands.Builder exceptionHandler(TriConsumer<java.lang.RuntimeException,CMDSender,Arguments> exceptionHandler)
public CommandWithSubcommands.Builder colorScheme(com.djrapitops.plugin.command.ColorScheme colors)
public CommandWithSubcommands build()
build
in interface SubcommandBuilder
build
in class Subcommand.Builder<CommandWithSubcommands.Builder>