mirror of
https://github.com/plexusorg/Plex-FAWE.git
synced 2025-06-16 13:53:55 +00:00
Made sure that the player had the /jumpto permission in order to use the navigation wand.
This commit is contained in:
@ -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);
|
||||
|
Reference in New Issue
Block a user