summaryrefslogtreecommitdiffstats
path: root/Essentials/src/com/earth2me/essentials/commands/Commandpowertool.java
diff options
context:
space:
mode:
Diffstat (limited to 'Essentials/src/com/earth2me/essentials/commands/Commandpowertool.java')
-rw-r--r--Essentials/src/com/earth2me/essentials/commands/Commandpowertool.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/Essentials/src/com/earth2me/essentials/commands/Commandpowertool.java b/Essentials/src/com/earth2me/essentials/commands/Commandpowertool.java
index dc04c0e04..33b69565f 100644
--- a/Essentials/src/com/earth2me/essentials/commands/Commandpowertool.java
+++ b/Essentials/src/com/earth2me/essentials/commands/Commandpowertool.java
@@ -9,6 +9,7 @@ import java.util.Locale;
import org.bukkit.Material;
import org.bukkit.Server;
import org.bukkit.command.CommandSender;
+import org.bukkit.entity.Player;
import org.bukkit.inventory.ItemStack;
@@ -87,7 +88,7 @@ public class Commandpowertool extends EssentialsCommand
{
if (command.startsWith("a:"))
{
- if (sender instanceof User && !((User)sender).isAuthorized("essentials.powertool.append"))
+ if (sender instanceof Player && !ess.getUser(sender).isAuthorized("essentials.powertool.append"))
{
throw new Exception(_("noPerm", "essentials.powertool.append"));
}