VelocityPlayer¶
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 Type | Method | Description |
|---|---|---|
String |
getVersion() |
Returns the protocol version of the player in a readable MC version format (i.e. 1.19.3). |
Methods inherited from ch.andre601.advancedserverlist.api.objects.GenericPlayer |
|---|
getName(), getProtocol(), getUUID() |
Method Details¶
String getVersion()¶
Returns the protocol version of the player in a readable MC version format (i.e. 1.19.3).
Returns:¶
The readable MC version the player uses.