diff --git a/src/pocketmine/command/PluginCommand.php b/src/pocketmine/command/PluginCommand.php index 05c01fcc0..eb5fe1dc7 100644 --- a/src/pocketmine/command/PluginCommand.php +++ b/src/pocketmine/command/PluginCommand.php @@ -70,7 +70,7 @@ class PluginCommand extends Command implements PluginIdentifiableCommand{ * @param CommandExecutor $executor */ public function setExecutor(CommandExecutor $executor){ - $this->executor = ($executor != null) ? $executor : $this->owningPlugin; + $this->executor = $executor; } /**