mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2024-11-29 16:46:46 +01:00
Fix Ininsufficient permissions error in console when running /mcremove
Fixes issue: https://github.com/mcMMO-Dev/mcMMO/issues/1016
This commit is contained in:
parent
b97afb85a1
commit
b8fdbc7ba8
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user