Hello,
I would like to know if it’s possible to create a plugin which runs on bukkit and sponge with the same jar.
let me explain :
Server Start -> Detect if it’s bukkit or sponge installed -> Launches the corresponding code
Hello,
I would like to know if it’s possible to create a plugin which runs on bukkit and sponge with the same jar.
let me explain :
Server Start -> Detect if it’s bukkit or sponge installed -> Launches the corresponding code
Well I guess in general you could just add listeners to the different events (since Bukkit and Sponge obv have different event classes) and then have the code in the corresponding listeners.
It’s be possible to have a class that both extends JavaPlugin (Bukkit) and has the @Plugin-annotation (Sponge).
I’m not sure if that’d cause any compatibility issues tho.
Yes, you can have Sponge code alongside Bukkit code.
Since Sponge and Bukkit have different loaders, yes. You’d have the plugin.yml file which points to a Bukkit main class, and you’d have a separate Sponge main class.