owner->isEnabled()){ return false; } if(!$this->executor->onCommand($sender, $this, $commandLabel, $args)){ throw new InvalidCommandSyntaxException(); } return true; } public function getOwningPlugin() : Plugin{ return $this->owner; } public function getExecutor() : CommandExecutor{ return $this->executor; } public function setExecutor(CommandExecutor $executor) : void{ $this->executor = $executor; } }