api: modify RemoveFriend to accept a nameable
Also update javadoc to reflect that it now also includes ignores
This commit is contained in:
@@ -251,7 +251,7 @@ public class FriendNotesPlugin extends Plugin
|
||||
public void onRemovedFriend(RemovedFriend event)
|
||||
{
|
||||
// Delete a friend's note if they are removed
|
||||
final String displayName = Text.toJagexName(event.getName());
|
||||
final String displayName = Text.toJagexName(event.getNameable().getName());
|
||||
log.debug("Remove friend: '{}'", displayName);
|
||||
setFriendNote(displayName, null);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user