mirror of
https://github.com/TotalFreedomMC/TF-EssentialsX.git
synced 2025-08-06 20:43:11 +00:00
Add isReachable API to IMessageRecipient.
Add translatable message recentlyForeverAlone. Add behaviour that preserves reply-recipient only if they are reachable, and update reply-recipient if they are not reachable. Fixes #248
This commit is contained in:
parent
e5ebeaf724
commit
26045e2ec0
6 changed files with 33 additions and 5 deletions
|
@ -717,6 +717,10 @@ public class User extends UserData implements Comparable<User>, IMessageRecipien
|
|||
public String getName() {
|
||||
return this.getBase().getName();
|
||||
}
|
||||
|
||||
@Override public boolean isReachable() {
|
||||
return getBase().isOnline();
|
||||
}
|
||||
|
||||
@Override public MessageResponse sendMessage(IMessageRecipient recipient, String message) {
|
||||
return this.messageRecipient.sendMessage(recipient, message);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue