[Fix] Disallow muted players to use /r (#1375)

This commit is contained in:
CreedTheFreak 2017-07-09 07:17:07 -07:00 committed by Ali 'SupaHam' M
parent 243e69649f
commit 518a43db9c

View File

@ -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 {