diff options
author | Necrodoom <doomed.war@gmail.com> | 2013-03-19 14:32:46 +0200 |
---|---|---|
committer | KHobbits <rob@khobbits.co.uk> | 2013-03-19 14:09:30 +0000 |
commit | df55e162d4968994d56cd3a025be5b13fd22c2e6 (patch) | |
tree | 10a6610e8b98c6ed16cd085f27d6b9602b2a6432 | |
parent | ea9bf854cc1430ab97881ff2c62366a80c459b92 (diff) | |
download | Essentials-df55e162d4968994d56cd3a025be5b13fd22c2e6.tar Essentials-df55e162d4968994d56cd3a025be5b13fd22c2e6.tar.gz Essentials-df55e162d4968994d56cd3a025be5b13fd22c2e6.tar.lz Essentials-df55e162d4968994d56cd3a025be5b13fd22c2e6.tar.xz Essentials-df55e162d4968994d56cd3a025be5b13fd22c2e6.zip |
console should be able to mute admins
-rw-r--r-- | Essentials/src/com/earth2me/essentials/commands/Commandmute.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Essentials/src/com/earth2me/essentials/commands/Commandmute.java b/Essentials/src/com/earth2me/essentials/commands/Commandmute.java index f9e051c91..2376ca422 100644 --- a/Essentials/src/com/earth2me/essentials/commands/Commandmute.java +++ b/Essentials/src/com/earth2me/essentials/commands/Commandmute.java @@ -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")); } } -}
\ No newline at end of file +} |