You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Francisco Solis edited this page Jul 20, 2021
·
1 revision
Modules?
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:
packagexyz.theprogramsrc.myplugin.modules;
importxyz.theprogramsrc.supercoreapi.spigot.SpigotModule;
publicclassMyModuleextendsSpigotModule {
@OverridepublicvoidonLoad(){
// Executed on the module load, here you can register commands, or create configs, etc.this.log("Hello from MyModule!");
}
// Other stuff...
}