1
0
mirror of https://github.com/essentials/Essentials.git synced 2025-02-24 08:22:56 +01:00

console should be able to mute admins

This commit is contained in:
Necrodoom 2013-03-19 14:32:46 +02:00 committed by KHobbits
parent 90d77cc178
commit 01221ff3b1

View File

@ -24,7 +24,7 @@ public class Commandmute extends EssentialsCommand
}
final User player = getPlayer(server, args, 0, true);
if (!player.isMuted() && player.isAuthorized("essentials.mute.exempt"))
if (sender instanceof Player && !player.isMuted() && player.isAuthorized("essentials.mute.exempt"))
{
throw new Exception(_("muteExempt"));
}
@ -69,4 +69,4 @@ public class Commandmute extends EssentialsCommand
player.sendMessage(_("playerUnmuted"));
}
}
}
}