mirror of
https://github.com/TotalFreedomMC/TF-EssentialsX.git
synced 2025-05-01 10:48:52 +00:00
Fix logic behind setting reply-recipient when receiving a message.
This commit is contained in:
parent
7b60552ec1
commit
928f05ca8f
1 changed files with 1 additions and 1 deletions
|
@ -105,7 +105,7 @@ public class SimpleMessageRecipient implements IMessageRecipient {
|
||||||
if (ess.getSettings().isLastMessageReplyRecipient()) {
|
if (ess.getSettings().isLastMessageReplyRecipient()) {
|
||||||
// If this recipient doesn't have a reply recipient, initiate by setting the first
|
// If this recipient doesn't have a reply recipient, initiate by setting the first
|
||||||
// message sender to this recipient's replyRecipient.
|
// message sender to this recipient's replyRecipient.
|
||||||
if (!isReachable()) {
|
if (getReplyRecipient() == null || !getReplyRecipient().isReachable()) {
|
||||||
setReplyRecipient(sender);
|
setReplyRecipient(sender);
|
||||||
}
|
}
|
||||||
} else { // Old message functionality, always set the reply recipient to the last person who sent us a message.
|
} else { // Old message functionality, always set the reply recipient to the last person who sent us a message.
|
||||||
|
|
Loading…
Reference in a new issue