Add silent msg ignoring in msg command

This commit is contained in:
vemacs 2015-07-28 19:49:13 -06:00
parent c592a9d361
commit fe9348b3fb

View File

@ -66,6 +66,9 @@ public class Commandmsg extends EssentialsLoopCommand {
if (sender.isPlayer() && matchedUser.isIgnoredPlayer(ess.getUser(sender.getPlayer()))) { if (sender.isPlayer() && matchedUser.isIgnoredPlayer(ess.getUser(sender.getPlayer()))) {
return; return;
} }
if (matchedUser.isIgnoreMsg()) {
return;
}
matchedUser.sendMessage(tl("msgFormat", senderName, translatedMe, args[0])); matchedUser.sendMessage(tl("msgFormat", senderName, translatedMe, args[0]));
replyTo.setReplyTo(matchedUser.getSource()); replyTo.setReplyTo(matchedUser.getSource());