Skip to content

Creating a Module

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:

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...
}

> Current Version

> Donate
PayPal
Patreon

Clone this wiki locally