Allow players to message themselves regardless of friend pref status
This commit is contained in:
parent
642507b08c
commit
0cfc909124
@ -611,7 +611,9 @@ public class MessageManager extends MiniClientPlugin<ClientMessage>
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
if (_preferences.get(to).isActive(Preference.FRIEND_MESSAGES_ONLY) && (friend == null || friend.Status != FriendStatusType.Accepted))
|
if (_preferences.get(to).isActive(Preference.FRIEND_MESSAGES_ONLY)
|
||||||
|
&& (friend == null || friend.Status != FriendStatusType.Accepted)
|
||||||
|
&& !sender.equals(to))
|
||||||
{
|
{
|
||||||
sender.sendMessage(F.main(getName(), F.name(to.getName()) + " only allows messages from friends."));
|
sender.sendMessage(F.main(getName(), F.name(to.getName()) + " only allows messages from friends."));
|
||||||
return;
|
return;
|
||||||
|
Loading…
Reference in New Issue
Block a user