PHP: function onDisable(){if($this->getServer()->isRunning == false){foreach($this->getServer()->getOnlinePlayers() as $pl){$pl->kick("§aserver closed", false);$this->getServer()->shutdown();}}} But I dont understand why you want make it using plugin and why just not edit pocketmine,yml
you must add a "false" to delet the “Kicked by Admin! Reason:“. example: PHP: $player->kick("test", false);
read my code PHP: $pl->kick("§aserver closed", false); add "false" it return player is not kicked by admin
Can't tell if you're being sarcastic or if you're genuinely serious. Anyways, I agree with him about why do something if it's already implemented? I had an argument similar to this, but it concerned titles.
Only the person who owns the server and has access to its files can edit it. If everybody in the world can edit your pocketmine.yml, than you have got a really serious security problem, that's not with PocketMine. I just don't see why you want to go through all of the extra trouble is all.