mirror of
https://github.com/boy0001/FastAsyncWorldedit.git
synced 2024-11-15 23:26:33 +01:00
Added -f flag to bypass findFreePosition in jumpto
This commit is contained in:
parent
2fef5e2e40
commit
7f659a8b4f
@ -168,7 +168,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
|
||||
)
|
||||
@ -189,7 +192,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);
|
||||
|
Loading…
Reference in New Issue
Block a user