mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-07-09 11:31:49 +00:00
Added getExecutor() and setExecutor() method to PluginCommand
:D
This commit is contained in:
parent
7fcaa78de4
commit
839f6621eb
@ -62,6 +62,17 @@ class PluginCommand extends Command implements PluginIdentifiableCommand{
|
|||||||
return $success;
|
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
|
* @return Plugin
|
||||||
*/
|
*/
|
||||||
|
Loading…
x
Reference in New Issue
Block a user