-
-
Notifications
You must be signed in to change notification settings - Fork 6
Creating a Module
Francisco Solis edited this page Jul 20, 2021
·
1 revision
Also known as Listeners these Modules will help you develop your plugins with ease, you just need to extend your class to xyz.theprogramsrc.supercoreapi.spigot.SpigotModule
or xyz.theprogramsrc.supercoreapi.bungee.BungeeModule
and done! The listener is automatically registered and you got a bunch of utils inside of it!!
Example Spigot Module:
package xyz.theprogramsrc.myplugin.modules;
import xyz.theprogramsrc.supercoreapi.spigot.SpigotModule;
public class MyModule extends SpigotModule {
@Override
public void onLoad(){
// Executed on the module load, here you can register commands, or create configs, etc.
this.log("Hello from MyModule!");
}
// Other stuff...
}