addFriend() and removeFriend() functionality

This commit is contained in:
Visne
2019-07-07 23:47:12 +02:00
parent f8003f1d03
commit f5a56e0b17
5 changed files with 34 additions and 2 deletions

View File

@@ -1607,4 +1607,20 @@ public abstract class RSClientMixin implements RSClient
return hideFriendAttackOptions && (p.isFriended() || p.isClanMember());
}
@Inject
@Override
public void addFriend(String friend)
{
RSFriendSystem friendSystem = getFriendManager();
friendSystem.addFriend(friend);
}
@Inject
@Override
public void removeFriend(String friend)
{
RSFriendSystem friendSystem = getFriendManager();
friendSystem.removeFriend(friend);
}
}