setPermission("pocketmine.command.stop"); } public function execute(CommandSender $sender, string $commandLabel, array $args){ if(!$this->testPermission($sender)){ return true; } Command::broadcastCommandMessage($sender, new TranslationContainer("commands.stop.start")); $sender->getServer()->shutdown(); return true; } }