I have a plugin written in Kotlin that provides APIs to third party plugins (let me call it "my plugin"). It also has Kotlin runtime bundled with it.
Now the problem is, BungeeCord seems to have unique class loader for each plugin, which does not allow a third party plugin to load Kotlin runtime classes from my plugin. Trying to share Kotlin runtime simply causes ClassNotFoundException raised by net.md_5.bungee.api.plugin.PluginClassloader.loadClass.
If the third party plugin also bundles...
How to use/load Kotlin runtime bundled another plugin
Now the problem is, BungeeCord seems to have unique class loader for each plugin, which does not allow a third party plugin to load Kotlin runtime classes from my plugin. Trying to share Kotlin runtime simply causes ClassNotFoundException raised by net.md_5.bungee.api.plugin.PluginClassloader.loadClass.
If the third party plugin also bundles...
How to use/load Kotlin runtime bundled another plugin