Allow players to message themselves regardless of friend pref status

This commit is contained in:
Spencer 2018-06-03 10:27:00 -04:00 committed by Alexander Meech
parent 642507b08c
commit 0cfc909124
1 changed files with 3 additions and 1 deletions

View File

@ -611,7 +611,9 @@ public class MessageManager extends MiniClientPlugin<ClientMessage>
}
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."));
return;