001 package org.bukkit.command;
002
003 /**
004 * Represents a class which contains a single method for executing commands
005 */
006 public interface CommandExecutor {
007
008 /**
009 * Executes the given command, returning its success
010 *
011 * @param sender Source of the command
012 * @param command Command which was executed
013 * @param label Alias of the command which was used
014 * @param args Passed command arguments
015 * @return true if a valid command, otherwise false
016 */
017 public boolean onCommand(CommandSender sender, Command command, String label, String[] args);
018 }