Class ServerVersion
java.lang.Object
de.eldoria.eldoutilities.crossversion.ServerVersion
Enum to determine and work with multiple versions.
- Since:
- 1.0.0
- 
Field SummaryFields
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionstatic voidforceVersion(Version oldest, Version newest) This method will check if the current version is between the oldest and newest version.static VersionGet the version of the server.
- 
Field Details- 
MC_UNKOWN
- 
CURRENT_VERSIONContains the current version of the server.
 
- 
- 
Constructor Details- 
ServerVersionpublic ServerVersion()
 
- 
- 
Method Details- 
getVersionGet the version of the server.- Returns:
- version of server
 
- 
forceVersionThis method will check if the current version is between the oldest and newest version. Will abort enable of plugin when called on enable.- Parameters:
- oldest- oldest version (inclusive)
- newest- newest version (inclusive)
- Throws:
- UnsupportedVersionException- when the server version is not between the oldest and newest version.
 
 
-