Package com.djrapitops.plan.commands.use
Class CommandWithSubcommands.Builder
java.lang.Object
com.djrapitops.plan.commands.use.Subcommand.Builder<CommandWithSubcommands.Builder>
com.djrapitops.plan.commands.use.CommandWithSubcommands.Builder
- All Implemented Interfaces:
SubcommandBuilder
- Enclosing class:
- CommandWithSubcommands
public static class CommandWithSubcommands.Builder
extends Subcommand.Builder<CommandWithSubcommands.Builder>
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
colorScheme
(ColorScheme colors) exceptionHandler
(TriConsumer<RuntimeException, CMDSender, Arguments> exceptionHandler) fallback
(BiConsumer<CMDSender, Arguments> executor) fallbackOrHelpFallback
(BiPredicate<CMDSender, Arguments> canBeUsed, BiConsumer<CMDSender, Arguments> executor) subcommand
(Subcommand subcommand) subcommandOnCondition
(boolean condition, Subcommand subcommand) Methods inherited from class com.djrapitops.plan.commands.use.Subcommand.Builder
alias, aliases, description, inDepthDescription, onCommand, onTabComplete, optionalArgument, requiredArgument, requirePermission
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.djrapitops.plan.commands.use.SubcommandBuilder
inDepthDescription, onCommand, requirePermission
-
Method Details
-
subcommand
-
subcommandOnCondition
public CommandWithSubcommands.Builder subcommandOnCondition(boolean condition, Subcommand subcommand) -
fallback
-
fallbackOrHelpFallback
public CommandWithSubcommands.Builder fallbackOrHelpFallback(BiPredicate<CMDSender, Arguments> canBeUsed, BiConsumer<CMDSender, Arguments> executor) -
exceptionHandler
public CommandWithSubcommands.Builder exceptionHandler(TriConsumer<RuntimeException, CMDSender, Arguments> exceptionHandler) -
colorScheme
-
build
- Specified by:
build
in interfaceSubcommandBuilder
- Overrides:
build
in classSubcommand.Builder<CommandWithSubcommands.Builder>
-