public abstract class TacoCommand
extends java.lang.Object
/im send Notch 46 64) 'send' is the subcommand.TacoCommandHandler,
TacoHelpCommand| Constructor and Description |
|---|
TacoCommand() |
| Modifier and Type | Method and Description |
|---|---|
protected abstract java.lang.String[] |
getAliases()
Use this method to get the aliases for a subcommand.
|
abstract boolean |
onConsoleCommand(java.lang.String[] args)
This method is called when someone using the console runs this command (automatic).
|
abstract boolean |
onPlayerCommand(org.bukkit.entity.Player player,
java.lang.String[] args)
This method is called when a player runs this command (automatic)
|
public abstract boolean onPlayerCommand(org.bukkit.entity.Player player,
java.lang.String[] args)
player - The player that typed the commandargs - The arguments of the commandfalse by default, if false is returned the player will be given.
an {@link InvalidPermissionsMessage InvalidPermissionsMessage}public abstract boolean onConsoleCommand(java.lang.String[] args)
args - The arguments of the commandfalse by default, if false is returned a message saying "[PluginName] This can't be
run from console" will printed to console.protected abstract java.lang.String[] getAliases()
TacoCommand class is being used to execute a command
without any arguments), in which case:
return new String[]{""};