From c25f13c3f0d83a113bb393ffd9bb1a248f00bedb Mon Sep 17 00:00:00 2001 From: sk89q Date: Tue, 19 Oct 2010 21:00:02 -0700 Subject: [PATCH] Fixed permission issues regarding the edit wand. --- src/SMWorldEditListener.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/SMWorldEditListener.java b/src/SMWorldEditListener.java index 4d9a36e97..71aeb7fce 100644 --- a/src/SMWorldEditListener.java +++ b/src/SMWorldEditListener.java @@ -51,7 +51,7 @@ public class SMWorldEditListener extends PluginListener { WorldEditPlayer player = new SMWorldEditPlayer(modPlayer); if (itemInHand != 271) { return false; } - if (!canUseCommand(modPlayer, "/editpos2")) { return false; } + if (!canUseCommand(modPlayer, "//pos2")) { return false; } WorldEditSession session = worldEdit.getSession(player); @@ -79,7 +79,7 @@ public class SMWorldEditListener extends PluginListener { */ @Override public boolean onBlockDestroy(Player modPlayer, Block blockClicked) { - if (!canUseCommand(modPlayer, "/editpos1") + if (!canUseCommand(modPlayer, "//pos1") && !canUseCommand(modPlayer, "//")) { return false; } WorldEdit worldEdit = WorldEdit.getInstance();