From 518a43db9c13d1d987029790c176d7b31ccb316f Mon Sep 17 00:00:00 2001 From: CreedTheFreak Date: Sun, 9 Jul 2017 07:17:07 -0700 Subject: [PATCH] [Fix] Disallow muted players to use /r (#1375) --- .../src/com/earth2me/essentials/commands/Commandr.java | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Essentials/src/com/earth2me/essentials/commands/Commandr.java b/Essentials/src/com/earth2me/essentials/commands/Commandr.java index 9907eda23..f105f5e28 100644 --- a/Essentials/src/com/earth2me/essentials/commands/Commandr.java +++ b/Essentials/src/com/earth2me/essentials/commands/Commandr.java @@ -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 {