mirror of
https://github.com/EssentialsX/Essentials.git
synced 2024-11-12 22:04:14 +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()) {
|
if (sender.isPlayer()) {
|
||||||
User user = ess.getUser(sender.getPlayer());
|
User user = ess.getUser(sender.getPlayer());
|
||||||
|
|
||||||
|
if (user.isMuted()) {
|
||||||
|
throw new Exception(tl("voiceSilenced"));
|
||||||
|
}
|
||||||
|
|
||||||
message = FormatUtil.formatMessage(user, "essentials.msg", message);
|
message = FormatUtil.formatMessage(user, "essentials.msg", message);
|
||||||
messageSender = user;
|
messageSender = user;
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
Reference in New Issue
Block a user