mirror of
https://github.com/EssentialsX/Essentials.git
synced 2025-02-27 01:32:11 +01:00
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:
parent
046752f8c2
commit
c0800afeeb
@ -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;
|
||||
}
|
||||
|
||||
|
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user