Friend Notification only on login/logout now, Chat messages for ignored players no longer display

Use Travel Ticket for travel tickets added
This commit is contained in:
Waverunner
2013-12-07 22:37:51 -05:00
parent 576c03db14
commit ba858e2c28
8 changed files with 81 additions and 37 deletions
+1 -30
View File
@@ -563,37 +563,8 @@ public class SimulationService implements INetworkDispatch {
if(object.getParentId() == 0)
add(object, pos.x, pos.z);
PlayerObject ghost = (PlayerObject) object.getSlottedObject("ghost");
if (ghost != null) {
String objectShortName = object.getCustomName().toLowerCase();
if (object.getCustomName().contains(" ")) {
String[] splitName = object.getCustomName().toLowerCase().split(" ");
objectShortName = splitName[0].toLowerCase();
}
core.chatService.playerStatusChange(objectShortName, (byte) 1);
if (ghost.getFriendList().isEmpty() == false) {
// Find out what friends are online/offline
for (String friend : ghost.getFriendList()) {
SWGObject friendObject = (SWGObject) core.chatService.getObjectByFirstName(friend);
if (friendObject == null)
continue;
if(friendObject.isInQuadtree() == true) {
ChatFriendsListUpdate onlineNotifyStatus = new ChatFriendsListUpdate(friend, (byte) 1);
client.getSession().write(onlineNotifyStatus.serialize());
} else {
ChatOnChangeFriendStatus changeStatus = new ChatOnChangeFriendStatus(object.getObjectID(), friend, 0);
client.getSession().write(changeStatus.serialize());
}
}
}
}
core.weatherService.sendWeather(object);