mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-04-20 16:00:20 +00:00
Added getExecutor() and setExecutor() method to PluginCommand
:D
This commit is contained in:
parent
7fcaa78de4
commit
839f6621eb
@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user