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
 boolean onCommand(CommandSender sender, Command command, String label, String[] args)
          Executes the given command, returning its success
 

Method Detail

onCommand

boolean onCommand(CommandSender sender,
                  Command command,
                  String label,
                  String[] args)
Executes the given command, returning its success

Parameters:
sender - Source of the command
command - Command which was executed
label - Alias of the command which was used
args - Passed command arguments
Returns:
true if a valid command, otherwise false


Copyright © 2014. All rights reserved.