Class CommandMetaBuilder
java.lang.Object
de.eldoria.eldoutilities.commands.command.util.CommandMetaBuilder
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddArgument(String name, boolean reqired) addUnlocalizedArgument(String name, boolean reqired) final CommandMetaBuilderallowCommandSender(Class<? extends org.bukkit.command.CommandSender>... senders) allowCommandSender(Set<Class<? extends org.bukkit.command.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 org.bukkit.command.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
public CommandMetaBuilder allowCommandSender(Set<Class<? extends org.bukkit.command.CommandSender>> allowedSender) -
withPermission
-