mirror of
https://github.com/BentoBoxWorld/BentoBox.git
synced 2025-01-02 22:47:43 +01:00
AddonsAPI - Documented AddonState & added ERROR state
This commit is contained in:
parent
7cb978fd4c
commit
ca17cd1080
@ -1,11 +1,49 @@
|
|||||||
package us.tastybento.bskyblock.api.addons;
|
package us.tastybento.bskyblock.api.addons;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Represents the current run-time state of a {@link BSAddon}.
|
||||||
|
*
|
||||||
|
* @author Poslovitch
|
||||||
|
* @since 1.0
|
||||||
|
*/
|
||||||
public enum AddonState {
|
public enum AddonState {
|
||||||
|
/**
|
||||||
|
* The addon is being loaded. It has just been found by the {@link us.tastybento.bskyblock.managers.AddonsManager}.
|
||||||
|
*/
|
||||||
LOADING,
|
LOADING,
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The addon has been correctly loaded and is being enabled. It is currently registering its content into the different Managers.
|
||||||
|
*/
|
||||||
ENABLING,
|
ENABLING,
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The addon has been correctly enabled and is now fully working.
|
||||||
|
*/
|
||||||
ENABLED,
|
ENABLED,
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The addon has somehow been asked to reload and is doing so. The reload could have been ordered by an user or another addon.
|
||||||
|
*/
|
||||||
RELOADING,
|
RELOADING,
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The addon is being disabled. This could have been ordered by an user or by the server shutting down.
|
||||||
|
*/
|
||||||
DISABLING,
|
DISABLING,
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The addon is fully disabled.
|
||||||
|
*/
|
||||||
DISABLED,
|
DISABLED,
|
||||||
INCOMPATIBLE
|
|
||||||
|
/**
|
||||||
|
* The addon has not been loaded because it requires a different version of BSkyBlock or of the server software.
|
||||||
|
*/
|
||||||
|
INCOMPATIBLE,
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The addon loading or enabling process has been interrupted by an unhandled error.
|
||||||
|
*/
|
||||||
|
ERROR
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user