https://github.com/pmmp/PocketMine-...56f7a97c39410/src/pocketmine/Player.php#L1282 https://github.com/pmmp/PocketMine-...tmine/event/entity/EntityLevelChangeEvent.php The api says all Joke aside: PHP: public function onEntityLevenChange(EntityLevelChangeEvent $event): void{ if($event->getEntity() instanceof Player){ if($event->getTarget()->getFolderName() === "ExampleWorld"){ $event->getEntity()->setGamemode(Player::SURVIVAL); } }} (Assuming this is used in a registered listener and all needed classes are imported)