pluginapi/src/main/java/xyz/etztech/core/maven/MavenPlugin.java

32 lines
636 B
Java

package xyz.etztech.core.maven;
import org.bukkit.plugin.java.JavaPlugin;
/**
* Takes care of running the MavenLoader when the plugin is loaded.
*/
public class MavenPlugin extends JavaPlugin {
// Allows plugins to still customize their load, enable, and disable methods
protected void load() {}
protected void enable() {}
protected void disable() {}
@Override
public final void onLoad() {
MavenLoader.loadAll(getClass());
load();
}
@Override
public final void onEnable() {
enable();
}
@Override
public final void onDisable() {
disable();
}
}