package net.acomputerdog.ircbot.plugin;

import net.acomputerdog.core.logger.CLogger;
import net.acomputerdog.ircbot.main.IrcBot;

public interface IrcPlugin {

    public default CLogger getLogger() {
        return getIrcBot().getLogManager().getLogger(getID());
    }

    public IrcBot getIrcBot();

    public String getID();

    public default String getName() {
        return getID();
    }

    public void onLoad(IrcBot bot);

    public void onUnload();

}

package net.acomputerdog.ircbot.plugin;

import net.acomputerdog.core.logger.CLogger;
import net.acomputerdog.ircbot.main.IrcBot;

public interface IrcPlugin {

    public default CLogger getLogger() {
        return getIrcBot().getLogManager().getLogger(getID());
    }

    public IrcBot getIrcBot();

    public String getID();

    public default String getName() {
        return getID();
    }

    public default String getVersion() {
        return "0.0";
    }

    public void onLoad(IrcBot bot);

    public void onUnload();

}

add getVersion to IrcPlugin