Package org.bukkit.command
Interface CommandExecutor
- All Known Subinterfaces:
Plugin
,TabCommandExecutor
,TabExecutor
- All Known Implementing Classes:
JavaPlugin
,PluginBase
public interface CommandExecutor
Represents a class which contains a single method for executing commands
-
Method Summary
Modifier and Type Method Description boolean
onCommand(CommandSender sender, Command command, java.lang.String label, java.lang.String[] args)
Executes the given command, returning its success
-
Method Details
-
onCommand
boolean onCommand(CommandSender sender, Command command, java.lang.String label, java.lang.String[] args)Executes the given command, returning its success- Parameters:
sender
- Source of the commandcommand
- Command which was executedlabel
- Alias of the command which was usedargs
- Passed command arguments- Returns:
- true if a valid command, otherwise false
-