Skip to content

Getting started

AlphaHelix edited this page Aug 25, 2017 · 2 revisions

How to get started?

First of all you have to decide wether you want AlphaLibary to work like a normal plugin or if you want to shade it into your final jar.

If you decide to use it a normal plugin, then you have to add depend = ["AlphaLibary"] into your plugin.yml

Else if you want to shade it into your final jar, then you have to have your main class extend AlphaLibary and call super.onEnable() inisde your onEnable() method.

public class MyMainClass extends AlphaLibary /*instead of JavaPlugin*/ {
    @Override()
    public void onEnable() {
        super.onEnable();
        //your code here.
    }
}

Clone this wiki locally