mirror of
https://github.com/TotalFreedomMC/TF-EssentialsX.git
synced 2025-08-05 12:02:53 +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);
|
MessageResponse messageResponse = recipient.onReceiveMessage(this.parent, message);
|
||||||
switch (messageResponse) {
|
switch (messageResponse) {
|
||||||
case MESSAGES_IGNORED:
|
case MESSAGES_IGNORED:
|
||||||
sendMessage(tl("msgIgnore", getDisplayName()));
|
sendMessage(tl("msgIgnore", recipient.getDisplayName()));
|
||||||
break;
|
break;
|
||||||
case SENDER_IGNORED:
|
case SENDER_IGNORED:
|
||||||
break;
|
break;
|
||||||
// When this recipient is AFK, notify the sender. Then, proceed to send the message.
|
// When this recipient is AFK, notify the sender. Then, proceed to send the message.
|
||||||
case SUCCESS_BUT_AFK: // TODO double check this functionality!
|
case SUCCESS_BUT_AFK:
|
||||||
sendMessage(tl("userAFK", getDisplayName()));
|
sendMessage(tl("userAFK", recipient.getDisplayName()));
|
||||||
default:
|
default:
|
||||||
sendMessage(tl("msgFormat", tl("me"), recipient.getDisplayName(), message));
|
sendMessage(tl("msgFormat", tl("me"), recipient.getDisplayName(), message));
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue