GenericPlayer¶
Interface used by the API to share common information across all platforms.
Platform-specific interfaces extending this interface are available and may offer additional features in addition to what this interface is offering.
This interface always offers data for the following:
Method Summary¶
Modifier and Type | Method | Description |
---|---|---|
String |
getName() |
Returns the name of the player. |
int |
getProtocol() |
Returns the protocol ID the player is using. The protocol ID is a unique positive integer that is used in Minecraft to determine the Version used by the Client and Server. |
UUID |
getUUID() |
Returns the unique ID associated with this player. |
Method Details¶
String getName()
¶
Returns the name of the player.
On BungeeCord and Velocity is the returned value always what AdvancedServerList has cached, while on paper the value may differ, should the plugin be able to obtain a OfflinePlayer instance from the Server.
Name may also be whatever has been defined in AdvancedServerList's unknownPlayer -> name
config.yml Option.
Returns:¶
String representing the player's name