Added Enter & Leave Messages for ChatRooms as well as info stats for the

room
This commit is contained in:
Waverunner
2014-04-17 16:01:12 -04:00
parent 8379c2f87b
commit 9252ebaaea
9 changed files with 245 additions and 23 deletions
+9
View File
@@ -122,6 +122,7 @@ import resources.objects.tool.SurveyTool;
import resources.objects.waypoint.WaypointObject;
import resources.objects.weapon.WeaponObject;
import services.bazaar.AuctionItem;
import services.chat.ChatRoom;
@SuppressWarnings("unused")
@@ -923,6 +924,14 @@ public class ObjectService implements INetworkDispatch {
}
}
}
for (Integer roomId : ghost.getJoinedChatChannels()) {
ChatRoom room = core.chatService.getChatRoom(roomId);
if (room != null) { core.chatService.joinChatRoom(objectShortName, roomId); }
// work-around for any channels that may have been deleted, or only spawn on server startup, that were added to the joined channels
else { ghost.removeChannel(roomId); }
}
}
if(!core.getConfig().getString("MOTD").equals(""))