Skip to content

Creating main class

ancap-kun edited this page Feb 13, 2023 · 5 revisions

Creating a plugin for AncapFramework is identical to creating a plugin for Bukkit Framework, except that you must inherit not from JavaPlugin, but from AncapPlugin.

The following is what the main class of a plugin written on the AncapFramework should look like. Note that the onEnable() method calls onEnable() from the superclass.

public final class AncapLibrary extends AncapPlugin {
    
    @Override
    public void onEnable() {
        super.onEnable();
        // code
    }

}
Clone this wiki locally