public function spawnToAll() { if ($this->closed) { return; } foreach ($this->getLevel()->getChunkPlayers($this->chunk->getX(), $this->chunk->getZ()) as $player) { if ($player->spawned === true) { $this->spawnTo($player); } } }