From 6be77451b659c121bc2c99fac58ccd4b9c5c1c04 Mon Sep 17 00:00:00 2001 From: wizjany Date: Sat, 29 Jun 2019 13:55:58 -0400 Subject: [PATCH] Correct perms for nav wand binding. --- .../src/main/java/com/sk89q/worldedit/command/ToolCommands.java | 2 +- .../main/java/com/sk89q/worldedit/session/SessionManager.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/worldedit-core/src/main/java/com/sk89q/worldedit/command/ToolCommands.java b/worldedit-core/src/main/java/com/sk89q/worldedit/command/ToolCommands.java index c3a57a1ad..469703f03 100644 --- a/worldedit-core/src/main/java/com/sk89q/worldedit/command/ToolCommands.java +++ b/worldedit-core/src/main/java/com/sk89q/worldedit/command/ToolCommands.java @@ -82,7 +82,7 @@ public class ToolCommands { aliases = "navwand", desc = "Navigation wand tool" ) - @CommandPermissions({"worldedit.command.jumpto.tool", "worldedit.command.thru.tool"}) + @CommandPermissions({"worldedit.nagivation.jumpto.tool", "worldedit.nagivation.thru.tool"}) public void navwand(Player player, LocalSession session) throws WorldEditException { BaseItemStack itemStack = player.getItemInHand(HandSide.MAIN_HAND); diff --git a/worldedit-core/src/main/java/com/sk89q/worldedit/session/SessionManager.java b/worldedit-core/src/main/java/com/sk89q/worldedit/session/SessionManager.java index 6b94d94ed..8803cdaf0 100644 --- a/worldedit-core/src/main/java/com/sk89q/worldedit/session/SessionManager.java +++ b/worldedit-core/src/main/java/com/sk89q/worldedit/session/SessionManager.java @@ -169,7 +169,7 @@ public class SessionManager { if (owner.hasPermission("worldedit.selection.pos")) { setDefaultWand(session.getWandItem(), config.wandItem, session, new SelectionWand()); } - if (owner.hasPermission("worldedit.command.jumpto.tool") || owner.hasPermission("worldedit.command.thru.tool")) { + if (owner.hasPermission("worldedit.nagivation.jumpto.tool") || owner.hasPermission("worldedit.nagivation.thru.tool")) { setDefaultWand(session.getNavWandItem(), config.navigationWand, session, new NavigationWand()); } } catch (InvalidToolBindException e) {