Class SetOwnerCommand


public class SetOwnerCommand extends TeamSubCommand
  • Constructor Details

    • SetOwnerCommand

      public SetOwnerCommand()
  • Method Details

    • onCommand

      public CommandResponse onCommand(TeamPlayer teamPlayer, String label, String[] args, Team team)
      Description copied from class: TeamSubCommand
      This method is run if the player is in a team
      Specified by:
      onCommand in class TeamSubCommand
      Parameters:
      teamPlayer - the player who is in a team
      label - the label for the command
      args - the arguments for the command
      team - the team that the player is in
      Returns:
      the message reference to send to the user
    • getCommand

      public String getCommand()
      Specified by:
      getCommand in class SubCommand
      Returns:
      the sub-command which this class handles
    • getNode

      public String getNode()
      Specified by:
      getNode in class SubCommand
      Returns:
      the permission node for that sub command
    • getHelp

      public String getHelp()
      Specified by:
      getHelp in class SubCommand
      Returns:
      the help information for that sub command (this does not include the arguments)
    • getArguments

      public String getArguments()
      Specified by:
      getArguments in class SubCommand
      Returns:
      the arguments for that sub command ie '[name]'
    • getMinimumArguments

      public int getMinimumArguments()
      Description copied from class: SubCommand
      Used to get the minimum number of arguments which need to be parsed into this command
      Specified by:
      getMinimumArguments in class SubCommand
      Returns:
      the number of minimum arguments
    • getMaximumArguments

      public int getMaximumArguments()
      Description copied from class: SubCommand
      return -1 if there is no cap
      Specified by:
      getMaximumArguments in class SubCommand
      Returns:
      the maximum number of arguments for the command
    • onTabComplete

      public void onTabComplete(List<String> options, org.bukkit.command.CommandSender sender, String label, String[] args)
      Specified by:
      onTabComplete in class SubCommand
    • getDefaultRank

      public PlayerRank getDefaultRank()
      Specified by:
      getDefaultRank in class TeamSubCommand
      Returns:
      the rank that the player has to be by default for this command