mirror of
https://github.com/plexusorg/Plex-FAWE.git
synced 2024-11-18 01:46:11 +00:00
This commit is contained in:
parent
80bd889a0d
commit
c04f99a720
@ -167,7 +167,10 @@ public class NavigationCommands {
|
|||||||
@Command(
|
@Command(
|
||||||
aliases = {"jumpto", "j"},
|
aliases = {"jumpto", "j"},
|
||||||
usage = "[world,x,y,z]",
|
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,
|
min = 0,
|
||||||
max = 1
|
max = 1
|
||||||
)
|
)
|
||||||
@ -188,7 +191,7 @@ public class NavigationCommands {
|
|||||||
pos = player.getSolidBlockTrace(300);
|
pos = player.getSolidBlockTrace(300);
|
||||||
}
|
}
|
||||||
if (pos != null) {
|
if (pos != null) {
|
||||||
player.findFreePosition(pos);
|
if(args.hasFlag('f')) player.setPosition(pos); else player.findFreePosition(pos);
|
||||||
BBC.POOF.send(player);
|
BBC.POOF.send(player);
|
||||||
} else {
|
} else {
|
||||||
BBC.NO_BLOCK.send(player);
|
BBC.NO_BLOCK.send(player);
|
||||||
|
Loading…
Reference in New Issue
Block a user