mirror of
https://github.com/plexusorg/Plex-FAWE.git
synced 2024-12-23 09:47:38 +00:00
Made sure that the player had the /jumpto permission in order to use the navigation wand.
This commit is contained in:
parent
0a8dc5b47d
commit
f05e31c8e9
@ -1914,7 +1914,8 @@ public class WorldEditController {
|
|||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
} else if (player.getItemInHand() == config.navigationWand
|
} else if (player.getItemInHand() == config.navigationWand
|
||||||
&& config.navigationWandMaxDistance > 0) {
|
&& config.navigationWandMaxDistance > 0
|
||||||
|
&& player.hasPermission("jumpto")) {
|
||||||
WorldVector pos = player.getSolidBlockTrace(config.navigationWandMaxDistance);
|
WorldVector pos = player.getSolidBlockTrace(config.navigationWandMaxDistance);
|
||||||
if (pos != null) {
|
if (pos != null) {
|
||||||
player.findFreePosition(pos);
|
player.findFreePosition(pos);
|
||||||
|
Loading…
Reference in New Issue
Block a user