package tk.martijn_heil.nincore.api;


import lombok.Getter;
import tk.martijn_heil.nincore.api.logging.NinPluginLogger;
import tk.martijn_heil.nincore.api.util.DataManager;
import org.bukkit.plugin.java.JavaPlugin;
import org.jetbrains.annotations.NotNull;

public abstract class Core extends JavaPlugin
{
    @Getter private ModuleManager moduleManager = new ModuleManager();
    @Getter private NinPluginLogger ninLogger;

    @NotNull
    @Getter
    private DataManager dataManager = new DataManager(this);


    @Override
    public final void onLoad()
    {
        this.ninLogger = new NinPluginLogger(this);

        this.onLoadInner();
    }


    @Override
    public final void onEnable()
    {
        this.onEnableInner();
        this.getModuleManager().enableAll();
    }


    @Override
    public final void onDisable()
    {
        this.getModuleManager().disableAll();
        this.onDisableInner();
    }


    public void onLoadInner()
    {
    }


    public void onEnableInner()
    {
    }


    public void onDisableInner()
    {
    }


    public final void endEnable()
    {
        this.setEnabled(false);
    }
}

package tk.martijn_heil.nincore.api;


import lombok.Getter;
import tk.martijn_heil.nincore.api.logging.NinPluginLogger;
import tk.martijn_heil.nincore.api.util.DataManager;
import org.bukkit.plugin.java.JavaPlugin;
import org.jetbrains.annotations.NotNull;

public abstract class Core extends JavaPlugin
{
    @Getter private ModuleManager moduleManager = new ModuleManager(this);
    @Getter private NinPluginLogger ninLogger;

    @NotNull
    @Getter
    private DataManager dataManager = new DataManager(this);


    @Override
    public final void onLoad()
    {
        this.ninLogger = new NinPluginLogger(this);

        this.onLoadInner();
    }


    @Override
    public final void onEnable()
    {
        this.onEnableInner();
        this.getModuleManager().enableAll();
    }


    @Override
    public final void onDisable()
    {
        this.getModuleManager().disableAll();
        this.onDisableInner();
    }


    public void onLoadInner()
    {
    }


    public void onEnableInner()
    {
    }


    public void onDisableInner()
    {
    }


    public final void endEnable()
    {
        this.setEnabled(false);
    }
}

Fix compile error