mirror of
https://github.com/EssentialsX/Essentials.git
synced 2024-12-26 11:07:55 +01:00
console should be able to mute admins
This commit is contained in:
parent
ea9bf854cc
commit
df55e162d4
@ -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"));
|
||||||
}
|
}
|
||||||
@ -69,4 +69,4 @@ public class Commandmute extends EssentialsCommand
|
|||||||
player.sendMessage(_("playerUnmuted"));
|
player.sendMessage(_("playerUnmuted"));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user