Enum Class Updater.UpdateResult

java.lang.Object
java.lang.Enum<Updater.UpdateResult>
com.comphenix.protocol.updater.Updater.UpdateResult
All Implemented Interfaces:
Serializable, Comparable<Updater.UpdateResult>, Constable
Enclosing class:
Updater

public static enum Updater.UpdateResult extends Enum<Updater.UpdateResult>
Gives the dev the result of the update process. Can be obtained by called getResult().
  • Nested Class Summary

    Nested classes/interfaces inherited from class java.lang.Enum

    Enum.EnumDesc<E extends Enum<E>>
  • Enum Constant Summary

    Enum Constants
    Enum Constant
    Description
    The server administrator has disabled the updating system
    The server administrator has improperly configured their API key in the configuration
    The id provided by the plugin running the updater was invalid and doesn't exist on DBO.
    For some reason, the updater was unable to contact dev.bukkit.org to download the file.
    The updater found an update, but was unable to download it.
    When running the version check, the file on DBO did not contain the a version in the format 'vVersion' such as 'v1.0'.
    The updater did not find an update, and nothing was downloaded.
    The updater found an update at Spigot
    The updater found an update, and has readied it to be loaded the next time the server restarts/reloads.
    The updater found an update, but because of the UpdateType being set to NO_DOWNLOAD, it wasn't downloaded.
  • Method Summary

    Modifier and Type
    Method
    Description
     
    Returns the enum constant of this class with the specified name.
    Returns an array containing the constants of this enum class, in the order they are declared.

    Methods inherited from class java.lang.Object

    getClass, notify, notifyAll, wait, wait, wait
  • Enum Constant Details

    • SUCCESS

      public static final Updater.UpdateResult SUCCESS
      The updater found an update, and has readied it to be loaded the next time the server restarts/reloads.
    • NO_UPDATE

      public static final Updater.UpdateResult NO_UPDATE
      The updater did not find an update, and nothing was downloaded.
    • DISABLED

      public static final Updater.UpdateResult DISABLED
      The server administrator has disabled the updating system
    • FAIL_DOWNLOAD

      public static final Updater.UpdateResult FAIL_DOWNLOAD
      The updater found an update, but was unable to download it.
    • FAIL_DBO

      public static final Updater.UpdateResult FAIL_DBO
      For some reason, the updater was unable to contact dev.bukkit.org to download the file.
    • FAIL_NOVERSION

      public static final Updater.UpdateResult FAIL_NOVERSION
      When running the version check, the file on DBO did not contain the a version in the format 'vVersion' such as 'v1.0'.
    • FAIL_BADID

      public static final Updater.UpdateResult FAIL_BADID
      The id provided by the plugin running the updater was invalid and doesn't exist on DBO.
    • FAIL_APIKEY

      public static final Updater.UpdateResult FAIL_APIKEY
      The server administrator has improperly configured their API key in the configuration
    • UPDATE_AVAILABLE

      public static final Updater.UpdateResult UPDATE_AVAILABLE
      The updater found an update, but because of the UpdateType being set to NO_DOWNLOAD, it wasn't downloaded.
    • SPIGOT_UPDATE_AVAILABLE

      public static final Updater.UpdateResult SPIGOT_UPDATE_AVAILABLE
      The updater found an update at Spigot
  • Method Details

    • values

      public static Updater.UpdateResult[] 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

      public static Updater.UpdateResult valueOf(String name)
      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 name
      NullPointerException - if the argument is null
    • toString

      public String toString()
      Overrides:
      toString in class Enum<Updater.UpdateResult>