diff --git a/src/main/java/uk/gemwire/bareessentials/commands/CmdSpawn.java b/src/main/java/uk/gemwire/bareessentials/commands/CmdSpawn.java index c432d2d..e247f4f 100644 --- a/src/main/java/uk/gemwire/bareessentials/commands/CmdSpawn.java +++ b/src/main/java/uk/gemwire/bareessentials/commands/CmdSpawn.java @@ -44,7 +44,7 @@ public static int execute(CommandSourceStack player) { player.sendSystemMessage(Component.translatable(Language.getInstance() .getOrDefault("bareessentials.spawn.tospawn"))); - player.getPlayer().moveTo(level.getSharedSpawnPos().getX() + 0.5, level.getSharedSpawnPos().getY(), + player.getPlayer().teleportTo(level.getSharedSpawnPos().getX() + 0.5, level.getSharedSpawnPos().getY(), level.getSharedSpawnPos().getZ() + 0.5); } return Command.SINGLE_SUCCESS;