Skip to content

Commit

Permalink
[Fix] Disallow muted players to use /r (#1375)
Browse files Browse the repository at this point in the history
  • Loading branch information
LCookman authored and SupaHam committed Jul 9, 2017
1 parent 243e696 commit 518a43d
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions Essentials/src/com/earth2me/essentials/commands/Commandr.java
Expand Up @@ -26,6 +26,11 @@ public void run(final Server server, final CommandSource sender, final String co

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 {
Expand Down

0 comments on commit 518a43d

Please sign in to comment.