Added getExecutor() and setExecutor() method to PluginCommand

:D
This commit is contained in:
64FF00 2014-08-02 10:11:36 +09:00
parent 7fcaa78de4
commit 839f6621eb

View File

@ -62,6 +62,17 @@ class PluginCommand extends Command implements PluginIdentifiableCommand{
return $success;
}
public function getExecutor(){
return $this->executor;
}
/**
* @param CommandExecutor $executor
*/
public function setExecutor(CommandExecutor $executor){
$this->executor = ($executor != null) ? $executor : $this->owningPlugin;
}
/**
* @return Plugin
*/