From df35492de5947f8a6c1cef87f193d78a5be8df26 Mon Sep 17 00:00:00 2001 From: Florian CUNY Date: Mon, 11 Dec 2017 22:05:32 +0100 Subject: [PATCH] AddonsAPI - Added RELOADING state & #reload() method --- src/main/java/us/tastybento/bskyblock/api/addons/AddonState.java | 1 + src/main/java/us/tastybento/bskyblock/api/addons/BSAddon.java | 1 + 2 files changed, 2 insertions(+) diff --git a/src/main/java/us/tastybento/bskyblock/api/addons/AddonState.java b/src/main/java/us/tastybento/bskyblock/api/addons/AddonState.java index 9883fb501..6c8b3ee2f 100644 --- a/src/main/java/us/tastybento/bskyblock/api/addons/AddonState.java +++ b/src/main/java/us/tastybento/bskyblock/api/addons/AddonState.java @@ -4,6 +4,7 @@ public enum AddonState { LOADING, ENABLING, ENABLED, + RELOADING, DISABLING, DISABLED, INCOMPATIBLE diff --git a/src/main/java/us/tastybento/bskyblock/api/addons/BSAddon.java b/src/main/java/us/tastybento/bskyblock/api/addons/BSAddon.java index ddc729a8a..3b04c3e60 100644 --- a/src/main/java/us/tastybento/bskyblock/api/addons/BSAddon.java +++ b/src/main/java/us/tastybento/bskyblock/api/addons/BSAddon.java @@ -12,6 +12,7 @@ public abstract class BSAddon implements BSModule { public abstract void enable(); public abstract void disable(); public abstract void load(); + public abstract void reload(); public AddonDescription getDescription() { return description;