diff --git a/Pocket/plugins/Mineplex/src/mineplex/plugin/gameengine/game/components/spawn/SimpleSpawnComponent.php b/Pocket/plugins/Mineplex/src/mineplex/plugin/gameengine/game/components/spawn/SimpleSpawnComponent.php index ae8d8c26c..5ef9eadfb 100644 --- a/Pocket/plugins/Mineplex/src/mineplex/plugin/gameengine/game/components/spawn/SimpleSpawnComponent.php +++ b/Pocket/plugins/Mineplex/src/mineplex/plugin/gameengine/game/components/spawn/SimpleSpawnComponent.php @@ -50,11 +50,11 @@ class SimpleSpawnComponent implements SpawnComponent, Listener { { if (!($value instanceof Position)) unset($this->spawns[$key]); - $this->spawns[$key] = new Position($value->getX(), $value->getY(), $value->getZ(), $event->getLevel()); } - print (count($this->spawns) . " spawns Loaded"); + print (count($this->spawns) . " spawns Loaded\n"); + //Just testing to make sure it is a location. $pos = $this->spawns[array_rand($this->spawns)]; print "\nX: " . $pos->getX();