mirror of
https://github.com/TotalFreedomMC/TF-EssentialsX.git
synced 2025-08-03 11:06:08 +00:00
console should be able to mute admins
This commit is contained in:
parent
ea9bf854cc
commit
df55e162d4
1 changed files with 2 additions and 2 deletions
|
@ -24,7 +24,7 @@ public class Commandmute extends EssentialsCommand
|
||||||
}
|
}
|
||||||
|
|
||||||
final User player = getPlayer(server, args, 0, true);
|
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"));
|
throw new Exception(_("muteExempt"));
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue