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

Private message goes to the wrong player #1044

Closed
x1p opened this issue Nov 8, 2018 · 7 comments
Closed

Private message goes to the wrong player #1044

x1p opened this issue Nov 8, 2018 · 7 comments
Labels
bug report Reports of bugs/inconsistencies
Milestone

Comments

@x1p
Copy link

x1p commented Nov 8, 2018

Description of issue or feature request:
Replying sometimes goes to the wrong person.


DELETE THIS SECTION IF YOU ARE SUBMITTING A FEATURE REQUEST

ERROR (DELETE IF YOU HAVE NO ERROR):
Fictive scenario to clearify

playerabc executes /msg player123 Testing 123
  Player123 -> player123: Testing 123
playerabc executes /r Another test
  Player123 -> playermessagedbefore: Another test
playerabc executes /msg playermessagedbefore Sorry, wasn't for you
  Player123 -> playermessagedbefore: Sorry, wasn't for you

CONFIG SECTION (DELETE IF NOT RELEVANT):

  # When set to false, each time you will use /r you will reply to person you previously sent message directly or to person who sent you message if there is none you have conversion before
  # When this set to true, players with /r will reply to person who last sent private message. This can result in confusion when using /r while getting private messages from multiple players
  ReplyToLastMessenger: true

Cmi Version (using/cmi version):
CMI8.0.21.4 but this bug is present for a while.

Server Type (Spigot/Paperspigot/etc):
Paperspigot

Server Version (using /ver):
1.13.2

@LogGits
Copy link
Collaborator

LogGits commented Nov 12, 2018

I think thats was written wrong in the config. When you set ReplyToLastMessenger: false does this function in the way that you need?

@LogGits LogGits added the bug report Reports of bugs/inconsistencies label Nov 12, 2018
@x1p
Copy link
Author

x1p commented Nov 12, 2018

That would be an option in the case, described above.
But, if set false then you would not be able to reply if someone sends you a message.
Example:
PlayerOther: /msg PlayerYou Hey!
PlayerYou: /r Hi!
This last message would go to someone way back, when you did explicitly /msg PlayerSomeone

Both methods are not consistent.

@LogGits
Copy link
Collaborator

LogGits commented Nov 12, 2018

Ah ok thanks. So just to confirm:

  1. when set to false, it should only allow you to respond to people who message you.
  2. when set to true, it should only allow you to respond to people that you message.

When you test those, is that how its functioning? (if not i will label this a bug report)

@x1p
Copy link
Author

x1p commented Nov 12, 2018

Imho from what I notice:
when false (default) it responds to people who you have explicitly messaged before.
when true it responds to people you just messaged you (even if you may have not messaged before)

False works normal from what I can tell. Only people on my server do not want that.
True works most of the time, but sometimes won't repond to the right person, even when you have explicitly messaged him before.

Essentials has this setting also.

# Changes /reply functionality. If true, /r goes to the person you messaged last, otherwise the first person that messaged you. 
# If false, /r goes to the last person that messaged you. (default=false)
last-message-reply-recipient: true

# If last-message-reply-recipient is true, this specifies the duration, in seconds, that would need to elapse for the 
# reply-recipient to update when receiving a message.
# Default is 180 (3 minutes)
last-message-reply-recipient-timeout: 180

@mrfloris
Copy link
Contributor

Can confirm, we have this issue as well. I have /chat someone, for a perm chat, someone else does /r and they tell me it's the wrong person who gets it. I sometimes get msgs from players who in console clearly show to /msg someone first, then msg, they get a reply from /msg from someone else, and /r to them, but i get the msg.

@LogGits LogGits added this to the 8.2.1.0 milestone Nov 26, 2018
@LogGits
Copy link
Collaborator

LogGits commented Nov 26, 2018

Ok I'm not really following. Essentials method being set to true is CMI's method being set to false.

@mrfloris what is your ReplyToLastMessenger setting set to?

Also, if it's still an issue it would be convenient someone could provide a better use case. We tested the provided method and it works as intended.

False, sets the reply recipient to the last person u messaged.
True, sets the reply recipient to the last person to message you.
When this was set to False this was the result:

a /msg c
b /msg a
a /r  <- goes to c

@Zrips
Copy link
Owner

Zrips commented Nov 26, 2018

Will add option to define timeout for responder, this should some the issue.

@Zrips Zrips closed this as completed Nov 26, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug report Reports of bugs/inconsistencies
Projects
None yet
Development

No branches or pull requests

4 participants