Class MoneySubCommand
java.lang.Object
com.booksaw.betterTeams.commands.SubCommand
com.booksaw.betterTeams.commands.presets.MoneySubCommand
- Direct Known Subclasses:
AddMoney,RemoveMoney,SetMoney
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintreturn -1 if there is no capintUsed to get the minimum number of arguments which need to be parsed into this commandabstract CommandResponseThis method is called whenever the sub command is run, return the message (+ chat color if it should not be the default chat color)Methods inherited from class com.booksaw.betterTeams.commands.SubCommand
addMetaStringList, addPlayerStringList, addTeamStringList, addTeamStringList, checkAsync, getArgMessage, getArguments, getCommand, getCommandAndArgMessage, getHelp, getHelpMessage, getNode, needPlayer, onTabComplete, runAsync
-
Constructor Details
-
MoneySubCommand
public MoneySubCommand()
-
-
Method Details
-
onCommand
public CommandResponse onCommand(org.bukkit.command.CommandSender sender, String label, String[] args) Description copied from class:SubCommandThis method is called whenever the sub command is run, return the message (+ chat color if it should not be the default chat color)
The return value should be the value of the message to be sent to the user, for more complicated messaging systems return null
- Specified by:
onCommandin classSubCommand- Parameters:
sender- the person who called the commandlabel- the label of the initial command (useful for help files)args- the arguments of the sub command (starting at args[0], as the sub command itself will be removed)- Returns:
- the message
-
onCommand
public abstract CommandResponse onCommand(org.bukkit.command.CommandSender sender, Team team, double change) -
getMaximumArguments
public int getMaximumArguments()Description copied from class:SubCommandreturn -1 if there is no cap- Specified by:
getMaximumArgumentsin classSubCommand- Returns:
- the maximum number of arguments for the command
-
getMinimumArguments
public int getMinimumArguments()Description copied from class:SubCommandUsed to get the minimum number of arguments which need to be parsed into this command- Specified by:
getMinimumArgumentsin classSubCommand- Returns:
- the number of minimum arguments
-