Enum Class ChatPluginState
- All Implemented Interfaces:
Serializable,Comparable<ChatPluginState>,Constable
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionOrdinary execution state, when the plugin is correctly working with (hopefully) no issues.Initial state, when the server has not started loading it yet.Recovery mode state, when the plugin failsChatPlugin.reload()orChatPlugin.unload().Reloading state, when aChatPlugin.reload()is being performed.Starting state, when the plugin is either: being started during a server startup or/bukkit:reloadbeing restarted after an attempt of recovery caused by a failedChatPlugin.reload()Unloaded state, whenChatPlugin.unload()has been completed without issues and the plugin has been disabled.Unloading state, when the plugin is either: being disabled during a server shutdown or/bukkit:reloadbeing unloaded after a failedChatPlugin.reload() -
Method Summary
Modifier and TypeMethodDescriptionstatic ChatPluginStateReturns the enum constant of this class with the specified name.static ChatPluginState[]values()Returns an array containing the constants of this enum class, in the order they are declared.Methods inherited from class java.lang.Enum
compareTo, describeConstable, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
-
Enum Constant Details
-
NOT_STARTED_YET
Initial state, when the server has not started loading it yet.Warning: no operations involving ChatPlugin should be executed at this moment.
-
STARTING
Starting state, when the plugin is either:- being started during a server startup or
/bukkit:reload - being restarted after an attempt of recovery caused by a failed
ChatPlugin.reload()
Warning: operations involving ChatPlugin may be executed at this moment, however there are no guarantees on the behaviour of its modules.
- being started during a server startup or
-
RELOADING
Reloading state, when aChatPlugin.reload()is being performed.Warning: operations involving ChatPlugin may be executed at this moment, however there are no guarantees on the behaviour of its modules.
-
LOADED
Ordinary execution state, when the plugin is correctly working with (hopefully) no issues.Generally, operations involving ChatPlugin should be executed in this period of time.
-
UNLOADING
Unloading state, when the plugin is either:- being disabled during a server shutdown or
/bukkit:reload - being unloaded after a failed
ChatPlugin.reload()
Warning: operations involving ChatPlugin may be executed at this moment, however there are no guarantees on the behaviour of its modules.
- being disabled during a server shutdown or
-
UNLOADED
Unloaded state, whenChatPlugin.unload()has been completed without issues and the plugin has been disabled.Warning: no operations involving ChatPlugin should be executed at this moment.
-
RECOVERY
Recovery mode state, when the plugin failsChatPlugin.reload()orChatPlugin.unload().Warning: no operations involving ChatPlugin should be executed at this moment.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-