Newer
Older
ultramine_bukkit / src / main / java / org / bukkit / command / CommandExecutor.java
@vlad20012 vlad20012 on 24 Feb 2017 552 bytes initial
package org.bukkit.command;

/**
 * Represents a class which contains a single method for executing commands
 */
public interface CommandExecutor
{

	/**
	 * Executes the given command, returning its success
	 *
	 * @param sender  Source of the command
	 * @param command Command which was executed
	 * @param label   Alias of the command which was used
	 * @param args    Passed command arguments
	 * @return true if a valid command, otherwise false
	 */
	public boolean onCommand(CommandSender sender, Command command, String label, String[] args);
}