mirror of
https://github.com/TotalFreedomMC/TF-EssentialsX.git
synced 2025-07-08 06:48:07 +00: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
1 changed files with 3 additions and 3 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue