mirror of
https://github.com/TotalFreedomMC/TF-EssentialsX.git
synced 2025-02-11 20:00:46 +00:00
[Fix] Disallow muted players to use /r (#1375)
This commit is contained in:
parent
243e69649f
commit
518a43db9c
1 changed files with 5 additions and 0 deletions
|
@ -26,6 +26,11 @@ public class Commandr extends EssentialsCommand {
|
|||
|
||||
if (sender.isPlayer()) {
|
||||
User user = ess.getUser(sender.getPlayer());
|
||||
|
||||
if (user.isMuted()) {
|
||||
throw new Exception(tl("voiceSilenced"));
|
||||
}
|
||||
|
||||
message = FormatUtil.formatMessage(user, "essentials.msg", message);
|
||||
messageSender = user;
|
||||
} else {
|
||||
|
|
Loading…
Reference in a new issue