Package redempt.ordinate.spigot
Class SpigotCommandBuilder
java.lang.Object
redempt.ordinate.builder.CommandBuilder<org.bukkit.command.CommandSender,SpigotCommandBuilder>
redempt.ordinate.spigot.SpigotCommandBuilder
public class SpigotCommandBuilder
extends redempt.ordinate.builder.CommandBuilder<org.bukkit.command.CommandSender,SpigotCommandBuilder>
A spigot-specific
CommandBuilder
-
Field Summary
Fields inherited from class redempt.ordinate.builder.CommandBuilder
componentFactory, deferred, manager, pipeline
-
Constructor Summary
ConstructorDescriptionSpigotCommandBuilder
(String[] names, redempt.ordinate.dispatch.CommandManager<org.bukkit.command.CommandSender> manager, redempt.ordinate.builder.BuilderOptions<org.bukkit.command.CommandSender> options) -
Method Summary
Modifier and TypeMethodDescriptionpermission
(String permission) Sets the permission required to run the commandMakes the command only executable by playersMethods inherited from class redempt.ordinate.builder.CommandBuilder
arg, boolFlag, build, consumingArg, consumingArg, handler, help, noHelpSubcommand, optionalArg, postArgument, register, subcommand, subcommand
-
Constructor Details
-
SpigotCommandBuilder
public SpigotCommandBuilder(String[] names, redempt.ordinate.dispatch.CommandManager<org.bukkit.command.CommandSender> manager, redempt.ordinate.builder.BuilderOptions<org.bukkit.command.CommandSender> options)
-
-
Method Details
-
permission
Sets the permission required to run the command- Parameters:
permission
- The permission- Returns:
- Itself
-
playerOnly
Makes the command only executable by players- Returns:
- Itself
-