diff --git a/BauSystem_Main/src/de/steamwar/bausystem/features/util/TeleportCommand.java b/BauSystem_Main/src/de/steamwar/bausystem/features/util/TeleportCommand.java index 9294eb20..2b372c56 100644 --- a/BauSystem_Main/src/de/steamwar/bausystem/features/util/TeleportCommand.java +++ b/BauSystem_Main/src/de/steamwar/bausystem/features/util/TeleportCommand.java @@ -24,6 +24,7 @@ import de.steamwar.command.SWCommand; import de.steamwar.linkage.Linked; import org.bukkit.entity.Player; import org.bukkit.event.player.PlayerTeleportEvent; +import org.bukkit.Location; import java.util.Random; @@ -44,4 +45,13 @@ public class TeleportCommand extends SWCommand { } p.teleport(target, PlayerTeleportEvent.TeleportCause.COMMAND); } + + @Register + public void locationCommand(Player p, int x, int y, int z) { + Location l = p.getLocation(); + l.setX(x + 0.5); + l.setY(y); + l.setZ(z + 0.5); + p.teleport(l, PlayerTeleportEvent.TeleportCause.COMMAND); + } } \ No newline at end of file