mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-10-17 04:06:54 +00:00
PluginCommand: separate CommandExecutor param
looking at the code now it's clear that this class combines two jobs into the same class. closes #3203
This commit is contained in:
@@ -35,13 +35,14 @@ class PluginCommand extends Command implements PluginIdentifiableCommand{
|
||||
private $executor;
|
||||
|
||||
/**
|
||||
* @param string $name
|
||||
* @param Plugin $owner
|
||||
* @param string $name
|
||||
* @param Plugin $owner
|
||||
* @param CommandExecutor $executor
|
||||
*/
|
||||
public function __construct(string $name, Plugin $owner){
|
||||
public function __construct(string $name, Plugin $owner, CommandExecutor $executor){
|
||||
parent::__construct($name);
|
||||
$this->owningPlugin = $owner;
|
||||
$this->executor = $owner;
|
||||
$this->executor = $executor;
|
||||
$this->usageMessage = "";
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user