mirror of
https://github.com/ProjectSWGCore/NGECore2.git
synced 2026-07-30 00:15:57 -04:00
Added GroupChat, PlanetChat, and basic chat channels
This commit is contained in:
@@ -83,6 +83,7 @@ import resources.common.collidables.AbstractCollidable;
|
||||
import resources.datatables.PlayerFlags;
|
||||
import resources.datatables.Posture;
|
||||
import services.ai.LairActor;
|
||||
import services.chat.ChatRoom;
|
||||
import toxi.geom.Line3D;
|
||||
import toxi.geom.Ray3D;
|
||||
import toxi.geom.Vec3D;
|
||||
@@ -837,6 +838,18 @@ public class SimulationService implements INetworkDispatch {
|
||||
if(object.getPosture() == Posture.Dead)
|
||||
core.playerService.sendCloningWindow(object, false);
|
||||
|
||||
ChatRoom zoneRoom = core.chatService.getChatRoomByAddress("SWG." + core.getGalaxyName() + "." + object.getPlanet().getName() + ".Planet");
|
||||
if (zoneRoom != null) {
|
||||
String chatName = object.getCustomName().toLowerCase();
|
||||
|
||||
if (chatName.contains(" "))
|
||||
chatName = chatName.split(" ")[0];
|
||||
|
||||
if (!zoneRoom.getUserList().contains(chatName)) {
|
||||
core.chatService.joinChatRoom(chatName, zoneRoom.getRoomId(), true);
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
public void transferToPlanet(SWGObject object, Planet planet, Point3D newPos, Quaternion newOrientation, SWGObject newParent) {
|
||||
|
||||
Reference in New Issue
Block a user