Fix Ininsufficient permissions error in console when running /mcremove

Fixes issue: https://github.com/mcMMO-Dev/mcMMO/issues/1016
This commit is contained in:
David 2013-04-29 13:21:46 -05:00
parent b97afb85a1
commit b8fdbc7ba8

View File

@ -21,7 +21,7 @@ import com.google.common.collect.ImmutableList;
public class McremoveCommand implements TabExecutor { public class McremoveCommand implements TabExecutor {
@Override @Override
public boolean onCommand(CommandSender sender, Command command, String label, String[] args) { 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()); sender.sendMessage(command.getPermissionMessage());
return true; return true;
} }