Enum PluginState

java.lang.Object
java.lang.Enum<PluginState>
de.marcely.bedwars.api.PluginState
All Implemented Interfaces:
Serializable, Comparable<PluginState>, java.lang.constant.Constable

public enum PluginState extends Enum<PluginState>
Run states of a plugin
  • Enum Constant Details

    • LOADING

      public static final PluginState LOADING
      The plugin is currently at Plugin.onLoad()
    • ENABLING

      public static final PluginState ENABLING
      The plugin is currently at Plugin.onEnable()
    • RUNNING

      public static final PluginState RUNNING
      The plugin successfully started and is running now
    • START_FAILED

      public static final PluginState START_FAILED
      The plugin tried to start, but failed
    • DISABLING

      public static final PluginState DISABLING
      The plugin is currently disabling itself
    • DISABLED

      public static final PluginState DISABLED
      The plugin stopped
  • Method Details

    • values

      public static PluginState[] values()
      Returns an array containing the constants of this enum type, in the order they are declared.
      Returns:
      an array containing the constants of this enum type, in the order they are declared
    • valueOf

      public static PluginState valueOf(String name)
      Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type has no constant with the specified name
      NullPointerException - if the argument is null
    • isTaskable

      public boolean isTaskable()
      Returns is it's safe to create a BukkitTask during this state
      Returns:
      If it's safe to create a BukkitTask during this state