Add configurable message for messaging someone with messages turned off. Adds #180

This message can also be removed to not send a message at all, keeping previous functionality.
This commit is contained in:
drtshock 2015-09-01 12:53:07 -05:00
parent 046752f8c2
commit c0800afeeb
2 changed files with 3 additions and 0 deletions

View File

@ -66,7 +66,9 @@ public class Commandmsg extends EssentialsLoopCommand {
if (sender.isPlayer() && matchedUser.isIgnoredPlayer(ess.getUser(sender.getPlayer()))) {
return;
}
if (matchedUser.isIgnoreMsg()) {
sender.sendMessage(tl("msgIgnore", matchedUser.getDisplayName()));
return;
}

View File

@ -568,3 +568,4 @@ msgDisabled=\u00a76Receiving messages \u00a7cdisabled\u00a76.
msgDisabledFor=\u00a76Receiving messages \u00a7cdisabled \u00a76for \u00a7c{0}\u00a76.
msgEnabled=\u00a76Receiving messages \u00a7cenabled\u00a76.
msgEnabledFor=\u00a76Receiving messages \u00a7cenabled \u00a76for \u00a7c{0}\u00a76.
msgIgnore=\u00a7c{0} \u00a74has messages disabled.