mirror of
https://github.com/ProjectSWGCore/NGECore2.git
synced 2026-07-31 01:15:57 -04:00
Most work on friends list finished
Need to be done: notifying when the checkbox is selected for certain users, deltas (crashes right now), removing friends
This commit is contained in:
@@ -26,6 +26,7 @@ import java.util.HashMap;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
import resources.objects.SWGList;
|
||||
import resources.objects.waypoint.WaypointObject;
|
||||
|
||||
import com.sleepycat.persist.model.NotPersistent;
|
||||
@@ -374,6 +375,18 @@ public class PlayerObject extends SWGObject {
|
||||
}
|
||||
}
|
||||
|
||||
public void friendAdd(String friend) {
|
||||
synchronized(objectMutex) {
|
||||
getContainer().getClient().getSession().write(messageBuilder.buildFriendAddDelta(friend));
|
||||
}
|
||||
}
|
||||
|
||||
public void friendRemove(String friend) {
|
||||
synchronized(objectMutex) {
|
||||
getContainer().getClient().getSession().write(messageBuilder.buildFriendRemoveDelta(friend));
|
||||
}
|
||||
}
|
||||
|
||||
public List<String> getIgnoreList() {
|
||||
return ignoreList;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user