mirror of
https://github.com/EssentialsX/Essentials.git
synced 2025-02-27 01:32:11 +01:00
Use recipient's display name instead of sender's name in messaging notifications. Fixes #249.
This commit is contained in:
parent
fb4af9fefc
commit
dc24bb53c2
@ -57,13 +57,13 @@ public class SimpleMessageRecipient implements IMessageRecipient {
|
||||
MessageResponse messageResponse = recipient.onReceiveMessage(this.parent, message);
|
||||
switch (messageResponse) {
|
||||
case MESSAGES_IGNORED:
|
||||
sendMessage(tl("msgIgnore", getDisplayName()));
|
||||
sendMessage(tl("msgIgnore", recipient.getDisplayName()));
|
||||
break;
|
||||
case SENDER_IGNORED:
|
||||
break;
|
||||
// When this recipient is AFK, notify the sender. Then, proceed to send the message.
|
||||
case SUCCESS_BUT_AFK: // TODO double check this functionality!
|
||||
sendMessage(tl("userAFK", getDisplayName()));
|
||||
case SUCCESS_BUT_AFK:
|
||||
sendMessage(tl("userAFK", recipient.getDisplayName()));
|
||||
default:
|
||||
sendMessage(tl("msgFormat", tl("me"), recipient.getDisplayName(), message));
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user