mirror of
https://github.com/ProjectSWGCore/NGECore2.git
synced 2026-09-21 06:13:13 -04:00
Added Enter & Leave Messages for ChatRooms as well as info stats for the
room
This commit is contained in:
@@ -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(""))
|
||||
|
||||
Reference in New Issue
Block a user