Added CommandExecutor interface to PluginBase

This commit is contained in:
Shoghi Cervantes 2014-03-27 05:25:47 +01:00
parent 530d705d39
commit 1c7be84703

View File

@ -21,12 +21,13 @@
namespace PocketMine\Plugin;
use PocketMine\Command\CommandExecutor;
use PocketMine\Server;
use PocketMine\Utils\Config;
use PocketMine\Command\CommandSender;
use PocketMine\Command\Command;
abstract class PluginBase implements Plugin{
abstract class PluginBase implements Plugin, CommandExecutor{
/**
* @var PluginLoader
@ -103,7 +104,15 @@ abstract class PluginBase implements Plugin{
return $this->initialized;
}
public function onCommand(CommandSender $sender, Command $command, $label, $args){
/**
* @param CommandSender $sender
* @param Command $command
* @param string $label
* @param string[] $args
*
* @return bool
*/
public function onCommand(CommandSender $sender, Command $command, $label, array $args){
return false;
}