Enum Class PluginVersion
- All Implemented Interfaces:
Serializable
,Comparable<PluginVersion>
,Constable
The plugin's version
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionDev-builds (auto-updater is disabled)Latest version (from auto-updater)Legacy versions (older than 2.3.0)2.3.0 (The fuel and dependency update)2.4.0 (The Planes and the API update)2.4.0-pre12.4.0-rc12.4.1 (Hotfixes)2.4.22.4.3 (with 1.19 support)2.5.0 (Boats and API overhaul, 1.20 support)2.5.0-pre12.5.0-pre22.5.1 (Skript)Deprecated.(auto-updater not working)2.5.3 (auto-updater hotfix) -
Method Summary
Modifier and TypeMethodDescriptionint
getOrder()
static PluginVersion
Get the plugin's version as enumstatic PluginVersion
getVersion(String version)
Get plugin version from a Stringboolean
isDev()
Check whether the plugin version is a dev-version (auto-updater is disabled)boolean
isOlderThan(@NotNull PluginVersion compareVersion)
Check whether the version is older than a given versionstatic PluginVersion
Returns the enum constant of this class with the specified name.static PluginVersion[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
LEGACY
Legacy versions (older than 2.3.0) -
v2_3_0
2.3.0 (The fuel and dependency update) -
v2_4_0_pre1
2.4.0-pre1 -
v2_4_0_rc1
2.4.0-rc1 -
v2_4_0
2.4.0 (The Planes and the API update) -
v2_4_1
2.4.1 (Hotfixes) -
v2_4_2
2.4.2 -
v2_4_3
2.4.3 (with 1.19 support) -
v2_5_0_pre1
2.5.0-pre1 -
v2_5_0_pre2
2.5.0-pre2 -
v2_5_0
2.5.0 (Boats and API overhaul, 1.20 support) -
v2_5_1
2.5.1 (Skript) -
v2_5_2
Deprecated.(auto-updater not working)2.5.2 -
v2_5_3
2.5.3 (auto-updater hotfix) -
LATEST
Latest version (from auto-updater) -
DEV
Dev-builds (auto-updater is disabled)
-
-
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
-
getOrder
public int getOrder() -
isDev
public boolean isDev()Check whether the plugin version is a dev-version (auto-updater is disabled)- Returns:
- True if plugin is a dev-build
-
getPluginVersion
Get the plugin's version as enum -
getVersion
Get plugin version from a String -
isOlderThan
Check whether the version is older than a given version
-