public abstract class ShopSubCommand extends Object
Constructor and Description |
---|
ShopSubCommand(String name,
boolean playerCommand,
org.bukkit.command.CommandExecutor executor,
org.bukkit.command.TabCompleter tabCompleter) |
Modifier and Type | Method and Description |
---|---|
boolean |
execute(org.bukkit.command.CommandSender sender,
org.bukkit.command.Command command,
String label,
String[] args)
Execute the sub command
|
abstract String |
getHelpMessage(org.bukkit.command.CommandSender sender)
Returns the help message for the command.
|
String |
getName() |
List<String> |
getTabCompletions(org.bukkit.command.CommandSender sender,
org.bukkit.command.Command command,
String label,
String[] args)
Returns a list of tab completions for the sub command
The main sub command will be tab completed by ShopChest
|
boolean |
isPlayerCommand()
Returns whether the command can only be used by players, not by the console
|
public ShopSubCommand(String name, boolean playerCommand, org.bukkit.command.CommandExecutor executor, org.bukkit.command.TabCompleter tabCompleter)
public String getName()
public boolean isPlayerCommand()
public boolean execute(org.bukkit.command.CommandSender sender, org.bukkit.command.Command command, String label, String[] args)
sender
- Sender of the commandargs
- Arguments of the command (args[0]
is the sub command's name)public List<String> getTabCompletions(org.bukkit.command.CommandSender sender, org.bukkit.command.Command command, String label, String[] args)
Returns a list of tab completions for the sub command
The main sub command will be tab completed by ShopChestsender
- Sender of the commandargs
- Arguments of the command (args[0]
is the sub command's name)public abstract String getHelpMessage(org.bukkit.command.CommandSender sender)
sender
- Sender to receive the help messageCopyright © 2017. All rights reserved.