Package com.jeff_media.updatechecker
Enum UpdateCheckSource
- All Implemented Interfaces:
Serializable
,Comparable<UpdateCheckSource>
,java.lang.constant.Constable
Represents the source from where to fetch update information.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionCustom link on where to fetch update checking information.GitHub Releases API.Polymart API.Spiget API.SpigotMC API. -
Method Summary
Modifier and TypeMethodDescriptionstatic UpdateCheckSource
Returns the enum constant of this type with the specified name.static UpdateCheckSource[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
SPIGOT
SpigotMC API. Trustworthy, but slow. Requires the SpigotMC resource ID (the number at the end of your plugin's SpigotMC URL) as parameter inUpdateChecker(JavaPlugin, UpdateCheckSource, String)
. -
POLYMART
Polymart API. Trustworthy, but slow. Requires the Polymart resource ID (the number at the end of your plugin's Polymart URL) as parameter inUpdateChecker(JavaPlugin, UpdateCheckSource, String)
. -
SPIGET
Spiget API. Not official, but faster than SpigotMC API. Requires the SpigotMC resource ID (the number at the end of your plugin's SpigotMC URL) as parameter inUpdateChecker(JavaPlugin, UpdateCheckSource, String)
. -
GITHUB_RELEASE_TAG
GitHub Releases API. Requires your repository in the format "UserName/RepositoryName" (for example: "JEFF-Media-GbR/ChestSort") as parameter inUpdateChecker(JavaPlugin, UpdateCheckSource, String)
. It will use the latest release's tag string. -
CUSTOM_URL
Custom link on where to fetch update checking information. Requires an HTTP or HTTPS URL as parameter inUpdateChecker(JavaPlugin, UpdateCheckSource, String)
. The linked file must be a plaintext file containing only for the latest version string.
-
-
Method Details
-
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
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 nameNullPointerException
- if the argument is null
-