Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Added worldedit.setwand permission required to change wand/navwand.
Players without this perm will be stuck with the configuration-defined
default wand/navwand items.
  • Loading branch information
wizjany committed Jun 29, 2019
1 parent 6be7745 commit 1d1c388
Showing 1 changed file with 2 additions and 2 deletions.
Expand Up @@ -69,7 +69,7 @@ public void none(Player player, LocalSession session) throws WorldEditException
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();
Expand All @@ -82,7 +82,7 @@ public void selwand(Player player, LocalSession session) throws WorldEditExcepti
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);
Expand Down

0 comments on commit 1d1c388

Please sign in to comment.