diff --git a/LaunchServer/src/main/java/ru/gravit/launchserver/LaunchServer.java b/LaunchServer/src/main/java/ru/gravit/launchserver/LaunchServer.java index 596cd766..ced4b54a 100644 --- a/LaunchServer/src/main/java/ru/gravit/launchserver/LaunchServer.java +++ b/LaunchServer/src/main/java/ru/gravit/launchserver/LaunchServer.java @@ -585,6 +585,7 @@ public void run() { JVMHelper.RUNTIME.addShutdownHook(CommonHelper.newThread(null, false, this::close)); CommonHelper.newThread("Command Thread", true, commandHandler).start(); rebindServerSocket(); + modulesManager.finishModules(); } diff --git a/Launcher/src/main/java/ru/gravit/launcher/client/ClientModuleManager.java b/Launcher/src/main/java/ru/gravit/launcher/client/ClientModuleManager.java index 56e0a98d..3beac090 100644 --- a/Launcher/src/main/java/ru/gravit/launcher/client/ClientModuleManager.java +++ b/Launcher/src/main/java/ru/gravit/launcher/client/ClientModuleManager.java @@ -16,4 +16,9 @@ public ClientModuleManager(LauncherEngine engine) { public void loadModule(URL jarpath, String classname) { throw new SecurityException("Custom JAR's load not allowed here"); } + + @Override + public void loadModuleFull(URL jarpath) { + throw new SecurityException("Custom JAR's load not allowed here"); + } } diff --git a/libLauncher/src/main/java/ru/gravit/launcher/managers/SimpleModuleManager.java b/libLauncher/src/main/java/ru/gravit/launcher/managers/SimpleModuleManager.java index effa9adf..fc4202d5 100644 --- a/libLauncher/src/main/java/ru/gravit/launcher/managers/SimpleModuleManager.java +++ b/libLauncher/src/main/java/ru/gravit/launcher/managers/SimpleModuleManager.java @@ -86,6 +86,7 @@ public void loadModuleFull(URL jarpath) throws ClassNotFoundException, IllegalAc module.preInit(context); module.init(context); module.postInit(context); + module.finish(context); LogHelper.info("Module %s version: %s loaded", module.getName(), module.getVersion()); } }