diff --git a/src/iZeaoGamer/WorldBorder/Main.php b/src/iZeaoGamer/WorldBorder/Main.php index 4e663fc..1cf1ea7 100644 --- a/src/iZeaoGamer/WorldBorder/Main.php +++ b/src/iZeaoGamer/WorldBorder/Main.php @@ -49,7 +49,7 @@ public function Boarder(PlayerMoveEvent $event){ $spawn = $this->getServer()->getDefaultLevel()->getSpawnLocation(); }else{ if($this->config->get("spawn-location")){ - $spawn = $this->getServer()->getLevelByName($this->config->get("worlds")->getSpawnLocation()); + $spawn = $event->getPlayer()->getLevel()->getSpawnLocation(); }else{ $spawn = new Vector3($this->config->get("spawn-coordinates")); }