mirror of
https://github.com/TotalFreedomMC/TF-EssentialsX.git
synced 2025-08-05 20:12:54 +00:00
Prevent muted players from using /msg
This commit is contained in:
parent
d07ecde47d
commit
a90b16be36
1 changed files with 11 additions and 1 deletions
|
@ -25,6 +25,16 @@ public class Commandmsg extends EssentialsCommand
|
||||||
throw new NotEnoughArgumentsException();
|
throw new NotEnoughArgumentsException();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (sender instanceof Player)
|
||||||
|
{
|
||||||
|
User user = ess.getUser(sender);
|
||||||
|
if (user.isMuted())
|
||||||
|
{
|
||||||
|
user.sendMessage(Util.i18n("voiceSilenced"));
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
String message = getFinalArg(args, 1);
|
String message = getFinalArg(args, 1);
|
||||||
String translatedMe = Util.i18n("me");
|
String translatedMe = Util.i18n("me");
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue