3
0
Mirror von https://github.com/IntellectualSites/FastAsyncWorldEdit.git synchronisiert 2024-12-26 02:50:06 +01:00

Added worldedit.setwand permission required to change wand/navwand.

Players without this perm will be stuck with the configuration-defined
default wand/navwand items.
Dieser Commit ist enthalten in:
wizjany 2019-06-29 14:15:58 -04:00
Ursprung 6be77451b6
Commit 1d1c38887f

Datei anzeigen

@ -69,7 +69,7 @@ public class ToolCommands {
aliases = "selwand", aliases = "selwand",
desc = "Selection wand tool" desc = "Selection wand tool"
) )
@CommandPermissions("worldedit.selection.pos") @CommandPermissions("worldedit.setwand")
public void selwand(Player player, LocalSession session) throws WorldEditException { public void selwand(Player player, LocalSession session) throws WorldEditException {
final ItemType itemType = player.getItemInHand(HandSide.MAIN_HAND).getType(); final ItemType itemType = player.getItemInHand(HandSide.MAIN_HAND).getType();
@ -82,7 +82,7 @@ public class ToolCommands {
aliases = "navwand", aliases = "navwand",
desc = "Navigation wand tool" 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 { public void navwand(Player player, LocalSession session) throws WorldEditException {
BaseItemStack itemStack = player.getItemInHand(HandSide.MAIN_HAND); BaseItemStack itemStack = player.getItemInHand(HandSide.MAIN_HAND);