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

@ -61,6 +61,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
@ -68,4 +79,4 @@ class PluginCommand extends Command implements PluginIdentifiableCommand{
public function getPlugin(){
return $this->owningPlugin;
}
}
}