Class DelHome
java.lang.Object
com.booksaw.betterTeams.commands.SubCommand
com.booksaw.betterTeams.commands.presets.TeamSubCommand
com.booksaw.betterTeams.commands.team.DelHome
-
Nested Class Summary
Nested classes/interfaces inherited from class com.booksaw.betterTeams.commands.presets.TeamSubCommand
TeamSubCommand.TeamPlayerResult
-
Field Summary
Fields inherited from class com.booksaw.betterTeams.commands.presets.TeamSubCommand
checkRank
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetHelp()
int
return -1 if there is no capint
Used to get the minimum number of arguments which need to be parsed into this commandgetNode()
onCommand
(TeamPlayer player, String label, String[] args, Team team) This method is run if the player is in a teamvoid
onTabComplete
(List<String> options, org.bukkit.command.CommandSender sender, String label, String[] args) Methods inherited from class com.booksaw.betterTeams.commands.presets.TeamSubCommand
checkRank, checkRank, getMyTeam, getRequiredRank, getTeamPlayer, needPlayer, onCommand, setRequiredRank
Methods inherited from class com.booksaw.betterTeams.commands.SubCommand
addMetaStringList, addPlayerStringList, addTeamStringList, addTeamStringList, checkAsync, getArgMessage, getCommandAndArgMessage, getHelpMessage, runAsync
-
Constructor Details
-
DelHome
public DelHome()
-
-
Method Details
-
onCommand
Description copied from class:TeamSubCommand
This method is run if the player is in a team- Specified by:
onCommand
in classTeamSubCommand
- Parameters:
player
- the player who is in a teamlabel
- the label for the commandargs
- the arguments for the commandteam
- the team that the player is in- Returns:
- the message reference to send to the user
-
getCommand
- Specified by:
getCommand
in classSubCommand
- Returns:
- the sub-command which this class handles
-
getNode
- Specified by:
getNode
in classSubCommand
- Returns:
- the permission node for that sub command
-
getHelp
- Specified by:
getHelp
in classSubCommand
- Returns:
- the help information for that sub command (this does not include the arguments)
-
getArguments
- Specified by:
getArguments
in classSubCommand
- 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 classSubCommand
- 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 classSubCommand
- 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 classSubCommand
-
getDefaultRank
- Specified by:
getDefaultRank
in classTeamSubCommand
- Returns:
- the rank that the player has to be by default for this command
-