Fork of Poseidon providing Bukkit #1060 to older Beta versions (b1.0-b1.7.3)
1package org.bukkit.command;
2
3/**
4 * Represents a class which contains a single method for executing commands
5 */
6public 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}