public enum VersionSupport
Copyright 2017 Shynixn
Do not remove this header!
Version 1.0
MIT License
Copyright (c) 2017
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
| Enum Constant and Description |
|---|
VERSION_1_10_R1 |
VERSION_1_11_R1 |
VERSION_1_12_R1 |
VERSION_1_13_R1 |
VERSION_1_8_R1 |
VERSION_1_8_R2 |
VERSION_1_8_R3 |
VERSION_1_9_R1 |
VERSION_1_9_R2 |
| Modifier and Type | Method and Description |
|---|---|
static VersionSupport |
getGreatestVersionSupported()
Returns the greatest version supported by the plugin
|
static VersionSupport |
getLowestVersionSupported()
Returns the lowest version supported by the plugin
|
static VersionSupport |
getServerVersion()
Returns the versionSupport from the current Server Version. Returns null if the server version cannot be recognized
|
java.lang.String |
getSimpleVersionText()
Returns the simpleVersionText
|
double |
getVersionCode()
Returns the versionCode
|
java.lang.String |
getVersionText()
Returns the versionText
|
static boolean |
isServerVersionSupported()
Returns if the serverVersion is supported by the plugin
|
boolean |
isVersionGreaterThan()
Checks if this version is greater than the given versionSupport by parameter
|
boolean |
isVersionLowerThan()
Checks if this version is lower than the given versionSupport by parameter
|
boolean |
isVersionSameOrGreaterThan()
Checks if this version is same or greater than the given versionSupport by parameter
|
boolean |
isVersionSameOrLowerThan()
Checks if this version is same or lower than the given versionSupport by parameter
|
public VersionSupport VERSION_1_8_R1
public VersionSupport VERSION_1_8_R2
public VersionSupport VERSION_1_8_R3
public VersionSupport VERSION_1_9_R1
public VersionSupport VERSION_1_9_R2
public VersionSupport VERSION_1_10_R1
public VersionSupport VERSION_1_11_R1
public VersionSupport VERSION_1_12_R1
public VersionSupport VERSION_1_13_R1
public java.lang.String getSimpleVersionText()
Returns the simpleVersionText
public java.lang.String getVersionText()
Returns the versionText
public double getVersionCode()
Returns the versionCode
public boolean isVersionSameOrGreaterThan()
Checks if this version is same or greater than the given versionSupport by parameter
public boolean isVersionSameOrLowerThan()
Checks if this version is same or lower than the given versionSupport by parameter
public boolean isVersionGreaterThan()
Checks if this version is greater than the given versionSupport by parameter
public boolean isVersionLowerThan()
Checks if this version is lower than the given versionSupport by parameter
public static VersionSupport getGreatestVersionSupported()
Returns the greatest version supported by the plugin
public static VersionSupport getLowestVersionSupported()
Returns the lowest version supported by the plugin
public static boolean isServerVersionSupported()
Returns if the serverVersion is supported by the plugin
public static VersionSupport getServerVersion()
Returns the versionSupport from the current Server Version. Returns null if the server version cannot be recognized