Class CommandMetaBuilder
java.lang.Object
de.eldoria.eldoutilities.commands.command.util.CommandMetaBuilder
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionaddArgument
(String name, boolean reqired) addUnlocalizedArgument
(String name, boolean reqired) final CommandMetaBuilder
allowCommandSender
(Class<? extends CommandSender>... senders) allowCommandSender
(Set<Class<? extends CommandSender>> allowedSender) build()
buildSubCommands
(BiConsumer<List<AdvancedCommand>, CommandMetaBuilder> commandConsumer) Use this consumer when you need more complex command setup.hidden()
Sets the command as hidden.ofParent
(AdvancedCommand parent) withArguments
(Argument... arguments) withDefaultCommand
(AdvancedCommand defaultCommand) withPermission
(String... permission) withPermission
(Set<String> permissions) withSubCommand
(AdvancedCommand advancedCommand)
-
Constructor Details
-
CommandMetaBuilder
-
-
Method Details
-
withPermission
-
allowPlayer
-
addAlias
-
allowConsole
-
allowCommandSender
@SafeVarargs public final CommandMetaBuilder allowCommandSender(Class<? extends CommandSender>... senders) -
addArgument
-
addUnlocalizedArgument
-
withArguments
-
withSubCommand
-
buildSubCommands
public CommandMetaBuilder buildSubCommands(BiConsumer<List<AdvancedCommand>, CommandMetaBuilder> commandConsumer) Use this consumer when you need more complex command setup.Add subcommands to the provided list.
Set the default command via the provided builder
- Parameters:
commandConsumer
- consumer- Returns:
- this instance
-
withDefaultCommand
-
ofParent
-
build
-
allowCommandSender
-
withPermission
-