From 35c4de34843289db1575e4857ec647743a10a91c Mon Sep 17 00:00:00 2001 From: NotMyFault Date: Wed, 20 May 2020 11:41:36 +0200 Subject: [PATCH] Fixes #427 --- .../com/sk89q/worldedit/command/tool/NavigationWand.java | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/worldedit-core/src/main/java/com/sk89q/worldedit/command/tool/NavigationWand.java b/worldedit-core/src/main/java/com/sk89q/worldedit/command/tool/NavigationWand.java index d6aa67059..3e58fb1a5 100644 --- a/worldedit-core/src/main/java/com/sk89q/worldedit/command/tool/NavigationWand.java +++ b/worldedit-core/src/main/java/com/sk89q/worldedit/command/tool/NavigationWand.java @@ -32,6 +32,9 @@ public enum NavigationWand implements DoubleActionTraceTool { @Override public boolean actSecondary(Platform server, LocalConfiguration config, Player player, LocalSession session) { + if (!player.hasPermission("worldedit.navigation.jumpto.tool")) { + return false; + } final int maxDist = config.navigationWandMaxDistance; if (maxDist <= 0) { return false; @@ -47,6 +50,9 @@ public enum NavigationWand implements DoubleActionTraceTool { @Override public boolean actPrimary(Platform server, LocalConfiguration config, Player player, LocalSession session) { + if (!player.hasPermission("worldedit.navigation.thru.tool")) { + return false; + } final int maxDist = config.navigationWandMaxDistance; if (maxDist <= 0) { return false;