From 8f7b76e8e454bb37933fb2282bd7ddfe0554a656 Mon Sep 17 00:00:00 2001 From: iZeaoGamer Date: Tue, 17 Mar 2020 14:05:59 +0000 Subject: [PATCH] poggit y u lying to me? there's no syntax errors. --- src/iZeaoGamer/WorldBorder/Main.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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")); }