public class TacoApiPluginsCommand extends TacoCommand
| Constructor and Description |
|---|
TacoApiPluginsCommand() |
| Modifier and Type | Method and Description |
|---|---|
protected java.lang.String[] |
getAliases()
Use this method to get the aliases for a subcommand.
|
boolean |
onConsoleCommand(java.lang.String[] args)
This method is called when someone using the console runs this command (automatic).
|
boolean |
onPlayerCommand(org.bukkit.entity.Player player,
java.lang.String[] args)
This method is called when a player runs this command (automatic)
|
public boolean onPlayerCommand(org.bukkit.entity.Player player,
java.lang.String[] args)
TacoCommandonPlayerCommand in class TacoCommandplayer - 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 boolean onConsoleCommand(java.lang.String[] args)
TacoCommandonConsoleCommand in class TacoCommandargs - 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 java.lang.String[] getAliases()
TacoCommandTacoCommand class is being used to execute a command
without any arguments), in which case:
return new String[]{""};
getAliases in class TacoCommand