mirror of
https://github.com/BentoBoxWorld/BentoBox.git
synced 2024-12-25 18:48:15 +01:00
Removed AddonInterface (useless) and moved methods to Addon
This commit is contained in:
parent
b9a86fd899
commit
66bbed48c6
@ -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();
|
||||
}
|
||||
|
@ -1,7 +0,0 @@
|
||||
package world.bentobox.bentobox.api.addons;
|
||||
|
||||
public interface AddonInterface {
|
||||
void onEnable();
|
||||
void onDisable();
|
||||
default void onLoad() {}
|
||||
}
|
Loading…
Reference in New Issue
Block a user