Package wbs.utils.util
Class VersionUtil
java.lang.Object
wbs.utils.util.VersionUtil
Utilities related to Minecraft server and client versions. Useful for ensuring functionality will work in a
given version of the server, but also hooks into ViaVersion when installed to make client-related info
available without requiring a hook in the implementing plugin.
-
Method Summary
Modifier and TypeMethodDescriptionstatic StringgetReadableVersion(org.bukkit.entity.Player player) static doubleGet the server version as a double.static doublegetVersion(org.bukkit.entity.Player player)
-
Method Details
-
getVersion
public static double getVersion()Get the server version as a double.- Returns:
- A double representing the server version, where the whole part is the major version, and the decimal part is the minor release. 1.16.4 is represented as 16.4.
-
getReadableVersion
-
getVersion
public static double getVersion(org.bukkit.entity.Player player)
-