Class BooksawCommand

java.lang.Object
org.bukkit.command.Command
org.bukkit.command.defaults.BukkitCommand
com.booksaw.betterTeams.BooksawCommand

public class BooksawCommand extends org.bukkit.command.defaults.BukkitCommand
Used to register a command which uses the sub command system
Author:
booksaw
  • Field Summary

    Fields inherited from class org.bukkit.command.Command

    description, timings, usageMessage
  • Constructor Summary

    Constructors
    Constructor
    Description
    BooksawCommand(String command, SubCommand subCommand, String permission, String description, List<String> alises)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    checkPointers(@NotNull org.bukkit.command.CommandSender sender, String label, String[] args)
     
    boolean
    execute(@NotNull org.bukkit.command.CommandSender sender, @NotNull String label, String[] args)
     
     
    void
    runExecution(org.bukkit.command.CommandSender sender, String label, String[] args)
     
    void
     
    @NotNull List<String>
    tabComplete(@NotNull org.bukkit.command.CommandSender sender, @NotNull String label, String[] args)
     

    Methods inherited from class org.bukkit.command.Command

    broadcastCommandMessage, broadcastCommandMessage, getAliases, getDescription, getLabel, getName, getPermission, getPermissionMessage, getUsage, isRegistered, register, setAliases, setDescription, setLabel, setName, setPermission, setPermissionMessage, setUsage, tabComplete, testPermission, testPermissionSilent, toString, unregister

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Constructor Details

  • Method Details

    • execute

      public boolean execute(@NotNull @NotNull org.bukkit.command.CommandSender sender, @NotNull @NotNull String label, String[] args)
      Specified by:
      execute in class org.bukkit.command.Command
    • runExecution

      public void runExecution(org.bukkit.command.CommandSender sender, String label, String[] args)
    • tabComplete

      @NotNull public @NotNull List<String> tabComplete(@NotNull @NotNull org.bukkit.command.CommandSender sender, @NotNull @NotNull String label, String[] args)
      Overrides:
      tabComplete in class org.bukkit.command.Command
    • checkPointers

      public boolean checkPointers(@NotNull @NotNull org.bukkit.command.CommandSender sender, String label, String[] args)
    • getSubCommand

      public SubCommand getSubCommand()
    • setSubCommand

      public void setSubCommand(SubCommand subCommand)