mirror of
https://github.com/ProjectSWGCore/NGECore2.git
synced 2026-09-28 13:12:54 -04:00
Fixed spawning in the buildout buildings, fixed gm permissions, added command to lock and unlock server for gms
This commit is contained in:
@@ -168,6 +168,8 @@ public class NGECore {
|
||||
|
||||
private BusConfiguration eventBusConfig = BusConfiguration.Default(1, new ThreadPoolExecutor(1, 4, 1, TimeUnit.MINUTES, new LinkedBlockingQueue<Runnable>()));
|
||||
|
||||
private ObjectDatabase buildingODB;
|
||||
|
||||
|
||||
public NGECore() {
|
||||
|
||||
@@ -209,6 +211,7 @@ public class NGECore {
|
||||
|
||||
setGalaxyStatus(1);
|
||||
creatureODB = new ObjectDatabase("creature", true, false, true);
|
||||
buildingODB = new ObjectDatabase("building", true, false, true);
|
||||
mailODB = new ObjectDatabase("mails", true, false, true);
|
||||
guildODB = new ObjectDatabase("guild", true, false, true);
|
||||
// Services
|
||||
@@ -305,6 +308,7 @@ public class NGECore {
|
||||
travelService.loadTravelPoints();
|
||||
simulationService = new SimulationService(this);
|
||||
|
||||
objectService.loadBuildings();
|
||||
terrainService.loadSnapShotObjects();
|
||||
simulationService.insertSnapShotObjects();
|
||||
|
||||
@@ -438,6 +442,10 @@ public class NGECore {
|
||||
return guildODB;
|
||||
}
|
||||
|
||||
public ObjectDatabase getBuildingODB() {
|
||||
return buildingODB;
|
||||
}
|
||||
|
||||
public int getActiveClients() {
|
||||
int connections = 0;
|
||||
for (Map.Entry<Integer, Client> c : clients.entrySet()) {
|
||||
|
||||
Reference in New Issue
Block a user