mirror of
https://github.com/EssentialsX/Essentials.git
synced 2024-11-10 04:50:12 +01:00
[Fix] Disallow muted players to use /r (#1375)
This commit is contained in:
parent
243e69649f
commit
518a43db9c
@ -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 New Issue
Block a user