This should teleport players to the world spawn

This commit is contained in:
Taah 2023-08-23 19:44:27 -07:00
parent d7df923e5c
commit 37a649fa7a

View File

@ -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());
}