Bukkit-API
1.7.9-R0.2
The inofficial Bukkit-API
|
Public Member Functions | |
boolean | onCommand (CommandSender sender, Command command, String label, String[] args) |
Represents a class which contains a single method for executing commands
Definition at line 6 of file CommandExecutor.java.
boolean org.bukkit.command.CommandExecutor.onCommand | ( | CommandSender | sender, |
Command | command, | ||
String | label, | ||
String[] | args | ||
) |
Executes the given command, returning its success
sender | Source of the command |
command | Command which was executed |
label | Alias of the command which was used |
args | Passed command arguments |
Implemented in org.bukkit.plugin.java.JavaPlugin, and org.bukkit.plugin.TestPlugin.
Referenced by org.bukkit.command.PluginCommand.execute().