mirror of
https://github.com/plexusorg/Plex-FAWE.git
synced 2025-07-12 10:18:36 +00:00
Added the navigation wand.
This commit is contained in:
@ -1913,6 +1913,14 @@ public class WorldEditController {
|
||||
player, session, null);
|
||||
return true;
|
||||
}
|
||||
} else if (player.getItemInHand() == config.navigationWand
|
||||
&& config.navigationWandMaxDistance > 0) {
|
||||
WorldVector pos = player.getSolidBlockTrace(config.navigationWandMaxDistance);
|
||||
if (pos != null) {
|
||||
player.findFreePosition(pos);
|
||||
} else {
|
||||
player.printError("No block in sight (or too far)!");
|
||||
}
|
||||
}
|
||||
|
||||
return false;
|
||||
|
Reference in New Issue
Block a user