From b8fdbc7ba8a6ee29323ab1fbc4ad6d198cd3686f Mon Sep 17 00:00:00 2001 From: David Date: Mon, 29 Apr 2013 13:21:46 -0500 Subject: [PATCH] Fix Ininsufficient permissions error in console when running /mcremove Fixes issue: https://github.com/mcMMO-Dev/mcMMO/issues/1016 --- .../com/gmail/nossr50/commands/database/McremoveCommand.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/com/gmail/nossr50/commands/database/McremoveCommand.java b/src/main/java/com/gmail/nossr50/commands/database/McremoveCommand.java index dbf648270..d09164580 100644 --- a/src/main/java/com/gmail/nossr50/commands/database/McremoveCommand.java +++ b/src/main/java/com/gmail/nossr50/commands/database/McremoveCommand.java @@ -21,7 +21,7 @@ import com.google.common.collect.ImmutableList; public class McremoveCommand implements TabExecutor { @Override public boolean onCommand(CommandSender sender, Command command, String label, String[] args) { - if (!Permissions.mcremove(sender)) { + if (!Permissions.mcremove(sender) && sender instanceof Player) { sender.sendMessage(command.getPermissionMessage()); return true; }