Moved
The documenation has been moved and can now be found at asl.andre601.ch.
This page in particular can be found at asl.andre601.ch/api/reference/platform-velocity/ch.andre601.advancedserverlist.api.velocity/objects/velocityplayer/.
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 Detail
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.