Use CommandExecutor by default on plugins :P

This commit is contained in:
Shoghi Cervantes
2014-04-05 21:44:29 +02:00
parent 711519d4ff
commit 4098252ec7
3 changed files with 15 additions and 8 deletions

View File

@ -39,11 +39,7 @@ class PluginCommand extends Command implements PluginIdentifiableCommand{
public function __construct($name, Plugin $owner){
parent::__construct($name);
$this->owningPlugin = $owner;
if(!($owner instanceof CommandExecutor)){
trigger_error("Plugin does not implement CommandExecutor", E_USER_WARNING);
}else{
$this->executor = $owner;
}
$this->executor = $owner;
$this->usageMessage = "";
}