From 4da8f2f60e6581dce62f8a4757ed22368f38dfad Mon Sep 17 00:00:00 2001 From: Zeanon Date: Sun, 18 Apr 2021 00:25:33 +0200 Subject: [PATCH] Fix for WorldspawnCommand --- .../{WorldSpawnCommand.java => WorldspawnCommand.java} | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) rename BauSystem_Main/src/de/steamwar/bausystem/features/other/{WorldSpawnCommand.java => WorldspawnCommand.java} (89%) diff --git a/BauSystem_Main/src/de/steamwar/bausystem/features/other/WorldSpawnCommand.java b/BauSystem_Main/src/de/steamwar/bausystem/features/other/WorldspawnCommand.java similarity index 89% rename from BauSystem_Main/src/de/steamwar/bausystem/features/other/WorldSpawnCommand.java rename to BauSystem_Main/src/de/steamwar/bausystem/features/other/WorldspawnCommand.java index 6015fae8..44d126ba 100644 --- a/BauSystem_Main/src/de/steamwar/bausystem/features/other/WorldSpawnCommand.java +++ b/BauSystem_Main/src/de/steamwar/bausystem/features/other/WorldspawnCommand.java @@ -29,11 +29,11 @@ import org.bukkit.entity.Player; import org.bukkit.event.player.PlayerTeleportEvent; @Linked(LinkageType.COMMAND) -public class WorldSpawnCommand extends SWCommand { +public class WorldspawnCommand extends SWCommand { private static final World WORLD = Bukkit.getWorlds().get(0); - public WorldSpawnCommand() { + public WorldspawnCommand() { super("worldspawn"); } @@ -44,6 +44,6 @@ public class WorldSpawnCommand extends SWCommand { @Register public void genericCommand(Player p) { - p.teleport(WORLD.getSpawnLocation(), PlayerTeleportEvent.TeleportCause.COMMAND); + p.teleport(WORLD.getSpawnLocation().add(0.5, 0, 0.5), PlayerTeleportEvent.TeleportCause.COMMAND); } } \ No newline at end of file