From 37a649fa7ae5ca47f40a2079f8ae7a4c2302dcf4 Mon Sep 17 00:00:00 2001 From: Taah Date: Wed, 23 Aug 2023 19:44:27 -0700 Subject: [PATCH] This should teleport players to the world spawn --- server/src/main/java/dev/plex/command/impl/WorldCMD.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/src/main/java/dev/plex/command/impl/WorldCMD.java b/server/src/main/java/dev/plex/command/impl/WorldCMD.java index 56cb6f6..d2db03e 100644 --- a/server/src/main/java/dev/plex/command/impl/WorldCMD.java +++ b/server/src/main/java/dev/plex/command/impl/WorldCMD.java @@ -31,7 +31,7 @@ public class WorldCMD extends PlexCommand return usage(); } World world = getNonNullWorld(args[0]); - playerSender.teleportAsync(new Location(world, 0, world.getHighestBlockYAt(0, 0) + 1, 0, 0, 0)); + playerSender.teleportAsync(world.getSpawnLocation()); return messageComponent("playerWorldTeleport", world.getName()); }