mirror of
https://bitbucket.org/projectswg/cucore.git
synced 2026-07-13 20:00:58 -04:00
Created qa tool to recover players that are in a pickle. Can teleport to all common planets
This commit is contained in:
@@ -325,12 +325,13 @@ public class ObjectManager extends Manager {
|
||||
|
||||
private void processObjectTeleportIntent(ObjectTeleportIntent oti) {
|
||||
SWGObject object = oti.getObject();
|
||||
objectAwareness.move(object, oti.getNewLocation());
|
||||
|
||||
if (object instanceof CreatureObject && object.getOwner() != null){
|
||||
objectAwareness.move(object, oti.getNewLocation());
|
||||
sendPacket(object.getOwner(), new CmdStartScene(false, object.getObjectId(), ((CreatureObject)object).getRace(), object.getLocation(), (long)(ProjectSWG.getCoreTime()/1E3)));
|
||||
object.createObject(object.getOwner());
|
||||
new PlayerEventIntent(object.getOwner(), PlayerEvent.PE_ZONE_IN).broadcast();
|
||||
} else {
|
||||
object.setLocation(oti.getNewLocation());
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user