From 1f7b39b8e3e67221e55ee52fb6578e79a332f446 Mon Sep 17 00:00:00 2001 From: sk89q Date: Sun, 3 Oct 2010 17:57:41 -0700 Subject: [PATCH] Updated for b104. --- src/WorldEdit.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/WorldEdit.java b/src/WorldEdit.java index 51c509918..04f4d7ba3 100644 --- a/src/WorldEdit.java +++ b/src/WorldEdit.java @@ -203,8 +203,8 @@ public class WorldEdit extends Plugin { public boolean onBlockCreate(Player player, Block blockPlaced, Block blockClicked, int itemInHand) { if (itemInHand == 271) { // Wooden axe - if (!etc.getInstance().canUseCommand(player.getName(), "/editpos1") - || !etc.getInstance().canUseCommand(player.getName(), "/editpos2")) { + if (!player.canUseCommand("/editpos1") + || !player.canUseCommand("/editpos2")) { return false; } @@ -254,13 +254,13 @@ public class WorldEdit extends Plugin { public boolean onCommand(Player player, String[] split) { try { if (commands.containsKey(split[0])) { - if (etc.getInstance().canUseCommand(player.getName(), split[0])) { + if (player.canUseCommand(split[0])) { return handleEditCommand(player, split); } } else { // See if there is a script by the same name if (mapScriptCommands) { - if (etc.getInstance().canUseCommand(player.getName(), "/editscript")) { + if (player.canUseCommand("/editscript")) { String filename = split[0].substring(1) + ".js"; String[] args = new String[split.length - 1]; System.arraycopy(split, 1, args, 0, split.length - 1);