Interface VelocityPlayer

All Superinterfaces:
GenericPlayer

public interface VelocityPlayer extends 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 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.