How to I allow flying in my server so players don’t get kicked? I set flight in the server properties file to true but they still get kicked
You could use this at PlayerJoinEvent PHP: public function onJoin(PlayerJoinEvent $event){ $player = $event->getPlayer(); $player->setAllowFlight(true); #This allow the player flight}
Ok turn the server off then reedit the file save it then start the server back up. The file will overwrite its self if the server is on. You have to make sure the server is off when editing the server properties or pocketmine.yml