From c04f99a7207d4babd97ccbd207e1701a4353ae70 Mon Sep 17 00:00:00 2001 From: Jesse Boyd Date: Tue, 16 Oct 2018 02:27:10 +1100 Subject: [PATCH] #1158 --- .../com/sk89q/worldedit/command/NavigationCommands.java | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/worldedit-core/src/main/java/com/sk89q/worldedit/command/NavigationCommands.java b/worldedit-core/src/main/java/com/sk89q/worldedit/command/NavigationCommands.java index 0492dd40a..a52446d45 100644 --- a/worldedit-core/src/main/java/com/sk89q/worldedit/command/NavigationCommands.java +++ b/worldedit-core/src/main/java/com/sk89q/worldedit/command/NavigationCommands.java @@ -167,7 +167,10 @@ public class NavigationCommands { @Command( aliases = {"jumpto", "j"}, usage = "[world,x,y,z]", - desc = "Teleport to a location", + desc = "Teleport to a location" + + "Flags:\n" + + " -f forces the specified position to be used", + flags = "f", min = 0, max = 1 ) @@ -188,7 +191,7 @@ public class NavigationCommands { pos = player.getSolidBlockTrace(300); } if (pos != null) { - player.findFreePosition(pos); + if(args.hasFlag('f')) player.setPosition(pos); else player.findFreePosition(pos); BBC.POOF.send(player); } else { BBC.NO_BLOCK.send(player);