Bukkit-API  1.7.9-R0.2
The inofficial Bukkit-API
CommandExecutor.java
1 package org.bukkit.command;
2 
3 /**
4  * Represents a class which contains a single method for executing commands
5  */
6 public interface CommandExecutor {
7 
8  /**
9  * Executes the given command, returning its success
10  *
11  * @param sender Source of the command
12  * @param command Command which was executed
13  * @param label Alias of the command which was used
14  * @param args Passed command arguments
15  * @return true if a valid command, otherwise false
16  */
17  public boolean onCommand(CommandSender sender, Command command, String label, String[] args);
18 }
boolean onCommand(CommandSender sender, Command command, String label, String[] args)