hellos, the spawn of my server is not to the endoit or spawn players, and at every kill on the server, the player does not teleport to the spawn despite the consecutive /setworldspawn, how to avoid this error or while it code I could add in my hand to avoid this
PHP: public function onRespawn(PlayerRespawnEvent $event){$player = $event->getPlayer();$player->teleport($this->getServer()->getLevelByName("world")->getSafeSpawn());