Implementing Chris's scripting engine and dropping the old one.

Author: UnAfraid
Source: L2jUnity free release.
This commit is contained in:
MobiusDev
2016-10-21 13:26:36 +00:00
parent 93c43d7067
commit 4df1abce3f
25 changed files with 1634 additions and 712 deletions

View File

@@ -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();