Moved AddonState in Addon.State

This commit is contained in:
Florian CUNY 2018-09-15 12:11:23 +02:00
parent 23ff8de867
commit edd64d2f30
2 changed files with 32 additions and 34 deletions

View File

@ -41,6 +41,38 @@ public abstract class Addon implements AddonInterface {
return BentoBox.getInstance();
}
/**
* Represents the current run-time state of a {@link Addon}.
*
* @author Poslovitch
*/
enum State {
/**
* The addon has been correctly enabled and is now fully working.
*/
ENABLED,
/**
* The addon is fully disabled.
*/
DISABLED,
/**
* The addon has not been loaded because it requires a different version of BentoBox or of the server software.
*/
INCOMPATIBLE,
/**
* The addon has not been enabled because a dependency is missing.
*/
MISSING_DEPENDENCY,
/**
* The addon loading or enabling process has been interrupted by an unhandled error.
*/
ERROR
}
/**
* @return the addon's default config file
*/

View File

@ -1,34 +0,0 @@
package world.bentobox.bentobox.api.addons;
/**
* Represents the current run-time state of a {@link Addon}.
*
* @author Poslovitch
* @since 1.0
*/
public enum AddonState {
/**
* The addon has been correctly enabled and is now fully working.
*/
ENABLED,
/**
* The addon is fully disabled.
*/
DISABLED,
/**
* The addon has not been loaded because it requires a different version of BentoBox or of the server software.
*/
INCOMPATIBLE,
/**
* The addon has not been enabled because a dependency is missing.
*/
MISSING_DEPENDENCY,
/**
* The addon loading or enabling process has been interrupted by an unhandled error.
*/
ERROR
}