GenericPlayer¶
A basic interface used to store generic player data to use in placeholder resolving.
The different variants of AdvancedServerList implement this into their own class and may provide additional data not available through this interface.
The following values will always be present, no matter the platform this interface is used on:
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. |
UUID |
getUUID()
|
Returns the unique ID associated with this player. |
Method Detail
String
getName()
¶
Returns the name of the player.
Note that on Spigot, Paper and other forks can the name differ from the one cached by AdvancedServerList, if the plugin was able to retrieve an OfflinePlayer instance from the server. On BungeeCord and Velocity will the returned String always be the name from the cache.
Name may be whatever has been defined in AdvancedServerList's config.yml, should the player not be cached yet by the plugin.
Returns:¶
String representing the player's name