Implementing Chris's scripting engine and dropping the old one.
Author: UnAfraid Source: L2jUnity free release.
This commit is contained in:
@@ -184,7 +184,7 @@ public final class GameServer
|
||||
new File("log/game").mkdirs();
|
||||
|
||||
// load script engines
|
||||
printSection("Engines");
|
||||
printSection("Scripting Engines");
|
||||
L2ScriptEngineManager.getInstance();
|
||||
|
||||
printSection("World");
|
||||
@@ -329,15 +329,12 @@ public final class GameServer
|
||||
|
||||
try
|
||||
{
|
||||
_log.info(getClass().getSimpleName() + ": Loading server scripts:");
|
||||
if (!Config.ALT_DEV_NO_HANDLERS || !Config.ALT_DEV_NO_QUESTS)
|
||||
{
|
||||
L2ScriptEngineManager.getInstance().executeScriptList(new File(Config.DATAPACK_ROOT, "scripts.cfg"));
|
||||
}
|
||||
_log.info("Loading server scripts...");
|
||||
L2ScriptEngineManager.getInstance().executeScriptList();
|
||||
}
|
||||
catch (IOException ioe)
|
||||
catch (Exception e)
|
||||
{
|
||||
_log.severe(getClass().getSimpleName() + ": Failed loading scripts.cfg, scripts are not going to be loaded!");
|
||||
_log.log(Level.WARNING, "Failed to execute script list!", e);
|
||||
}
|
||||
|
||||
SpawnTable.getInstance().load();
|
||||
|
Reference in New Issue
Block a user