Hey, I want to get The position of the Spawn not with a player I have searched quickly and i find nothing ☺☺ PHP: public function onEnable() {$config = new Config($this->getDataFolder() . "config.yml", Config::YAML);} I want to get the original Spawn and save it in the config like that $config->set("spawn", $coordonesofthespawn);
Mind spending some time to search the source code? https://github.com/pmmp/PocketMine-MP/blob/master/src/pocketmine/level/Level.php#L2273-L2280
get the default level of your server PHP: $this->getServer()->getDefaultLevel(); get its spawn PHP: $defaultLevel->getSpawnLocation(); Done! full code: PHP: $this->getServer()->getDefaultLevel()->getSpawnLocation();