Interface GenericPlayer
- All Known Subinterfaces:
BukkitPlayer
,BungeePlayer
,VelocityPlayer
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 Details
-
getName
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.
-
getProtocol
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.- Returns:
- Integer representing the Player's Protocol Version.
-
getUUID
UUID getUUID()Returns the Unique ID associated with this Player.
Name may also be whatever has been defined in AdvancedServerList's
unknownPlayer -> uuid
config.yml Option.- Returns:
- UUID of the Player.
-