public interface SubCommand
Modifier and Type | Method and Description |
---|---|
void |
execute(org.bukkit.command.CommandSender sender,
java.util.List<java.lang.String> args)
Executes the command.
|
java.lang.String[] |
getAliases()
Gets the aliases for the command.
|
java.lang.String |
getDescription()
Gets the description of the command.
|
java.lang.String |
getName()
Gets the name of the command.
|
java.lang.String |
getProperUse()
Gets the proper use of the command, in the format '/b
name arg1 arg2 ... |
void |
help(org.bukkit.command.CommandSender sender,
boolean description)
Outputs the correct usage, and optionally the description, of a command
to the given
CommandSender . |
java.lang.String getName()
java.lang.String[] getAliases()
java.lang.String getProperUse()
name
arg1 arg2 ... 'java.lang.String getDescription()
void help(org.bukkit.command.CommandSender sender, boolean description)
CommandSender
.sender
- The CommandSender to output the help todescription
- Whether or not to output the description of the commandvoid execute(org.bukkit.command.CommandSender sender, java.util.List<java.lang.String> args)
sender
- The CommandSender who issued the commandargs
- the command's arguments