Fixed double login bug, added gm permissions, added checks to gm commands, update your postgresql db

This commit is contained in:
Light2
2013-12-14 22:14:45 +01:00
parent 5fd06f87c1
commit 6daca0347c
11 changed files with 59 additions and 15 deletions
+4 -2
View File
@@ -501,7 +501,9 @@ public class ObjectService implements INetworkDispatch {
} else {
creature = (CreatureObject) getObject(objectId);
if(creature.getClient() != null)
return;
}
creature.setClient(client);
@@ -770,7 +772,7 @@ public class ObjectService implements INetworkDispatch {
object.setAttachment("bigSpawnRange", new Boolean(true));
core.simulationService.add(object, object.getPosition().x, object.getPosition().z);
} else if(containerId != 0) {
object = createObject(template, 0, planet, new Point3D(px, py, pz), new Quaternion(qw, qx, qy, qz));
object = createObject(template, objectId, planet, new Point3D(px, py, pz), new Quaternion(qw, qx, qy, qz));
if(containers.contains(containerId)) {
object.setisInSnapshot(false);
containers.add(objectId);