Class VersionModule
java.lang.Object
nl.mtvehicles.core.infrastructure.modules.VersionModule
Module containing information about the plugin and server version
-
Field Summary
Modifier and TypeFieldDescriptionstatic boolean
True if the plugin is a pre-release, release candidate or a dev-versionstatic PluginVersion
The plugin's version as enumstatic String
The plugin's version as String (e.g.static String
The server's software (e.g. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic ServerVersion
Get the server version as enumboolean
Check whether the server version is supported by the plugin.
-
Field Details
-
pluginVersionString
The plugin's version as String (e.g. '2.4.2') -
pluginVersion
The plugin's version as enum- See Also:
PluginVersion
-
isPreRelease
public static boolean isPreReleaseTrue if the plugin is a pre-release, release candidate or a dev-version -
serverSoftware
The server's software (e.g. 'Paper')
-
-
Constructor Details
-
VersionModule
public VersionModule()
-
-
Method Details
-
getServerVersion
Get the server version as enum- Returns:
- Server version
-
isSupportedVersion
public boolean isSupportedVersion()Check whether the server version is supported by the plugin. Otherwise, send a warning and disable the plugin.- Returns:
- True if the server version is supported
-