Interface VelocityPlayer
- All Superinterfaces:
GenericPlayer
GenericPlayer instance for the Velocity proxy implementation of AdvancedServerList.
Provides a getVersion() method to get the MC version used as a readable String (i.e. 1.19.3)
rather than just the protocol version.
To get an instance of this class from a GenericPlayer instance, simply cast it to a VelocityPlayer (Granted that the GenericPlayer instance actually is a VelocityPlayer instance).
-
Method Summary
Modifier and TypeMethodDescriptionReturns the protocol version in a readable MC version format (i.e. 1.19.3).Methods inherited from interface ch.andre601.advancedserverlist.api.objects.GenericPlayer
getName, getProtocol, getUUID
-
Method Details
-
getVersion
String getVersion()Returns the protocol version in a readable MC version format (i.e. 1.19.3).
This only works on Velocity and will return
null
for any other platform.- Returns:
- The readable MC version the player uses.
-