Removed AddonInterface (useless) and moved methods to Addon

This commit is contained in:
Florian CUNY 2018-10-30 09:27:59 +01:00
parent b9a86fd899
commit 66bbed48c6
2 changed files with 5 additions and 8 deletions

View File

@ -24,7 +24,7 @@ import world.bentobox.bentobox.managers.PlayersManager;
*
* @author tastybento, ComminQ_Q
*/
public abstract class Addon implements AddonInterface {
public abstract class Addon {
private static final String ADDON_CONFIG_FILENAME = "config.yml";
private State state;
@ -37,6 +37,10 @@ public abstract class Addon implements AddonInterface {
state = State.DISABLED;
}
public abstract void onEnable();
public abstract void onDisable();
public void onLoad() {}
public BentoBox getPlugin() {
return BentoBox.getInstance();
}

View File

@ -1,7 +0,0 @@
package world.bentobox.bentobox.api.addons;
public interface AddonInterface {
void onEnable();
void onDisable();
default void onLoad() {}
}