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

    Constructors
    Constructor
    Description
    SpigotCommandBuilder(String[] names, redempt.ordinate.dispatch.CommandManager<org.bukkit.command.CommandSender> manager, redempt.ordinate.builder.BuilderOptions<org.bukkit.command.CommandSender> options)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    permission(String permission)
    Sets the permission required to run the command
    Makes the command only executable by players

    Methods inherited from class redempt.ordinate.builder.CommandBuilder

    arg, boolFlag, build, consumingArg, consumingArg, handler, help, noHelpSubcommand, optionalArg, postArgument, register, subcommand, subcommand

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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

      public SpigotCommandBuilder permission(String permission)
      Sets the permission required to run the command
      Parameters:
      permission - The permission
      Returns:
      Itself
    • playerOnly

      public SpigotCommandBuilder playerOnly()
      Makes the command only executable by players
      Returns:
      Itself