mirror of https://github.com/plexusorg/Plex.git
This should teleport players to the world spawn
This commit is contained in:
parent
d7df923e5c
commit
37a649fa7a
|
@ -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());
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue