mirror of
https://github.com/ProjectSWGCore/Holocore.git
synced 2026-07-31 01:15:50 -04:00
Added a mechanism for logging players out and making them disappear
This commit is contained in:
@@ -63,6 +63,7 @@ public class ObjectManager extends Manager {
|
||||
public boolean initialize() {
|
||||
registerForIntent(SWGObjectEventIntent.TYPE);
|
||||
registerForIntent(GalacticPacketIntent.TYPE);
|
||||
registerForIntent(PlayerEventIntent.TYPE);
|
||||
for (Terrain t : Terrain.values()) {
|
||||
quadTree.put(t, new QuadTree<SWGObject>(-8192, -8192, 8192, 8192));
|
||||
}
|
||||
@@ -123,6 +124,10 @@ public class ObjectManager extends Manager {
|
||||
moveObject(trans, obj, oldLocation, newLocation);
|
||||
}
|
||||
}
|
||||
} else if (i instanceof PlayerEventIntent) {
|
||||
if (((PlayerEventIntent)i).getEvent() == PlayerEvent.PE_DISAPPEAR) {
|
||||
((PlayerEventIntent)i).getPlayer().getCreatureObject().clearAware();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user