Open satoshinm opened 7 years ago
Bukkit2Sponge integrates with Glowstone and can use the Glowstone plugins directory instead of its Bukkit2Sponge/plugins folder. The plugins directory is loaded first, so any attempts to reload a plugin from the B2S folder will fail, as the plugin has already been loaded from the main folder. We may add support for an additional option in plugin.yml for plugin requested API priority, so that plugins may be loaded for Sponge instead of Bukkit if requested.
Example:
api-priority: sponge,bukkit
An api-priority key sounds good, but note I get the duplicate class definition errors even when placing the plugin only in the Bukkit2Sponge/plugins folder and not the main top-level plugins folder
When loading WebSandboxMC under Bukkit2Sponge https://github.com/GlowstoneMC/Bukkit2Sponge/ build 14 from https://bamboo.gserv.me/browse/GSPP-B2S/ with Glowstone 498, the plugin in plugins/Bukkit2Sponge/plugins to force it to load as Sponge and not as Bukkit, it fails with a bunch of "attempted duplicate class definition for name" errors, starting below:
This may be a B2S issue, as it isn't fully implemented. But would be nice to have minimal functionality to test WebSandboxMC's incomplete Sponge port (GH-51, GH-65) without having to load up SpongeVanilla or SpongeForge.
Full log: https://gist.github.com/satoshinm/744e0de81ee78459694b3cacb9d4a576