From 1d1c38887ff0da51ab4d9927e811c9a8c28e4cc4 Mon Sep 17 00:00:00 2001 From: wizjany Date: Sat, 29 Jun 2019 14:15:58 -0400 Subject: [PATCH] Added `worldedit.setwand` permission required to change wand/navwand. Players without this perm will be stuck with the configuration-defined default wand/navwand items. --- .../main/java/com/sk89q/worldedit/command/ToolCommands.java | 4 ++-- 1 file 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 469703f03..08fbcde6c 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 @@ -69,7 +69,7 @@ public class ToolCommands { aliases = "selwand", desc = "Selection wand tool" ) - @CommandPermissions("worldedit.selection.pos") + @CommandPermissions("worldedit.setwand") public void selwand(Player player, LocalSession session) throws WorldEditException { final ItemType itemType = player.getItemInHand(HandSide.MAIN_HAND).getType(); @@ -82,7 +82,7 @@ public class ToolCommands { aliases = "navwand", desc = "Navigation wand tool" ) - @CommandPermissions({"worldedit.nagivation.jumpto.tool", "worldedit.nagivation.thru.tool"}) + @CommandPermissions("worldedit.setwand") public void navwand(Player player, LocalSession session) throws WorldEditException { BaseItemStack itemStack = player.getItemInHand(HandSide.MAIN_HAND);