Made sure that the player had the /jumpto permission in order to use the navigation wand.

This commit is contained in:
sk89q 2011-01-19 02:50:29 -08:00
parent 0a8dc5b47d
commit f05e31c8e9

View File

@ -1914,7 +1914,8 @@ public class WorldEditController {
return true;
}
} else if (player.getItemInHand() == config.navigationWand
&& config.navigationWandMaxDistance > 0) {
&& config.navigationWandMaxDistance > 0
&& player.hasPermission("jumpto")) {
WorldVector pos = player.getSolidBlockTrace(config.navigationWandMaxDistance);
if (pos != null) {
player.findFreePosition(pos);