Fixed spawning in the buildout buildings, fixed gm permissions, added command to lock and unlock server for gms

This commit is contained in:
Light2
2013-12-15 01:31:15 +01:00
parent a35aad38e8
commit 1e68c71177
9 changed files with 139 additions and 20 deletions
+2 -1
View File
@@ -148,6 +148,7 @@ public class SimulationService implements INetworkDispatch {
core.commandService.registerGmCommand("setgodmode");
core.commandService.registerCommand("requestwaypointatposition");
core.commandService.registerCommand("meditate");
core.commandService.registerGmCommand("server");
}
@@ -622,7 +623,7 @@ public class SimulationService implements INetworkDispatch {
SWGObject obj = it.next();
if(obj.getAttachment("bigSpawnRange") == null && obj.getWorldPosition().getDistance(pos) > 200)
continue;
System.out.println(obj.getTemplate());
//System.out.println(obj.getTemplate());
object.makeAware(obj);
if(obj.getClient() != null)
obj.makeAware(object);