Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Issue] Hover over private message shows wrong sender #233

Closed
Sikatsu opened this issue Dec 5, 2020 · 4 comments
Closed

[Issue] Hover over private message shows wrong sender #233

Sikatsu opened this issue Dec 5, 2020 · 4 comments

Comments

@Sikatsu
Copy link

Sikatsu commented Dec 5, 2020

It should say Bearly_Awake_, the sender of the private message. Instead it shows the receiver as the sender.

image

The other way around works, the receiver is being shown as receiver. In both cases the {player} placeholder is being used.

Works:

Parts:
  Everything:
    Message: '&6[&eIk &6-> &e{receiver}&6]&6 {message}'
    Hover:
    - '&3&lPrivebericht'
    - '&8&oVerstuurd {timestamp}'
    - '&7Ontvanger: &3{player}'
    Suggest_Command: '/tell {player} '

Doesn't work:

Parts:
  Everything:
    Message: '&6[&e{sender} &6-> &eIk&6]&6 {message}'
    Hover:
    - '&3&lPrivebericht'
    - '&8&oOntvangen {timestamp}'
    - '&7Afkomst: &3{player}'
    - ''
    - '&6Klik om te reageren!'
    Suggest_Command: '/r '

Minecraft: 1.16.4 Tuinity
MySQL: true
Bunege: true

@ElBananaa
Copy link
Collaborator

I just tried, I can't reproduce your issue. It works perfectly fine for me.
Paper 1.16.4
Java 14
No Bungee
No MySQL

@Sikatsu
Copy link
Author

Sikatsu commented Dec 5, 2020

So when someone sends you a private message and you hover over the message it says the senders name rather then your name? Might be a bungee thing then..

@ElBananaa
Copy link
Collaborator

So when someone sends you a private message and you hover over the message it says the senders name rather then your name? Might be a bungee thing then..

Yes, it does. I don't have any issue with that. Probably an issue while reading throught the message with MySQL yeah

@kangarko
Copy link
Owner

kangarko commented Dec 7, 2020

The {player} will always be replaced with the receiving player. Use the line below instead and it will work: https://i.imgur.com/R9V4grx.gif

- '&7Afkomst: &3{sender}'

@kangarko kangarko closed this as completed Dec 7, 2020
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants