Package com.djrapitops.plan.commands.use
Interface SubcommandBuilder
- All Known Implementing Classes:
CommandWithSubcommands.Builder
,Subcommand.Builder
public interface SubcommandBuilder
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
description
(String description) default SubcommandBuilder
inDepthDescription
(String inDepthDescription) inDepthDescription
(String... lines) default SubcommandBuilder
onArgsOnlyCommand
(Consumer<Arguments> executor) onCommand
(BiConsumer<CMDSender, Arguments> executor) default SubcommandBuilder
onTabComplete
(BiFunction<CMDSender, Arguments, List<String>> resolver) optionalArgument
(String name, String description) requiredArgument
(String name, String description) default SubcommandBuilder
requirePermission
(Permissions permission) requirePermission
(String permission)
-
Method Details
-
alias
-
aliases
-
requirePermission
-
requirePermission
-
description
-
inDepthDescription
-
inDepthDescription
-
requiredArgument
-
optionalArgument
-
onCommand
-
onCommand
-
onArgsOnlyCommand
-
onTabComplete
-
build
Subcommand build()
-