1
0
mirror of https://github.com/Rogiel/l2jserver2 synced 2025-12-10 09:22:49 +00:00

Several improvements

Signed-off-by: Rogiel <rogiel@rogiel.com>
This commit is contained in:
2011-05-21 20:19:13 -03:00
parent 6efce6615f
commit ab38e7d5ba
125 changed files with 969 additions and 205 deletions

View File

@@ -27,6 +27,8 @@ import com.l2jserver.service.configuration.ConfigurationService;
import com.l2jserver.service.database.DatabaseService;
import com.l2jserver.service.game.CharacterService;
import com.l2jserver.service.game.SpawnService;
import com.l2jserver.service.game.SpawnService.AlreadySpawnedServiceException;
import com.l2jserver.service.game.SpawnService.SpawnPointNotFoundServiceException;
import com.l2jserver.service.game.chat.ChatService;
import com.l2jserver.service.game.pathing.PathingService;
import com.l2jserver.service.game.scripting.ScriptingService;
@@ -67,6 +69,7 @@ public class L2JGameServerMain {
} catch (Exception e) {
System.out.println("GameServer could not be started!");
e.printStackTrace();
System.exit(0);
}
// Thread.sleep(60 * 60 * 1000);
@@ -74,8 +77,13 @@ public class L2JGameServerMain {
/**
* This method does an static spawn for an object
*
* @throws AlreadySpawnedServiceException
* @throws SpawnPointNotFoundServiceException
*/
private static void staticSpawn(Injector injector) {
private static void staticSpawn(Injector injector)
throws SpawnPointNotFoundServiceException,
AlreadySpawnedServiceException {
final NPCTemplateIDProvider templateProvider = injector
.getInstance(NPCTemplateIDProvider.class);
final NPCIDProvider provider = injector