mirror of
https://github.com/BentoBoxWorld/BentoBox.git
synced 2024-12-26 19:17:40 +01:00
Moved AddonState in Addon.State
This commit is contained in:
parent
23ff8de867
commit
edd64d2f30
@ -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
|
||||
*/
|
||||
|
@ -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
|
||||
}
|
Loading…
Reference in New Issue
Block a user