Players
This guide will show you how to retrieve a player using the Java SDK.
You can fetch an instance of AnalysePlayer
for an online by using the getPlayer
method of the Platform
interface, which takes a UUID
and returns an AnalysePlayer
.
Available Methods
getName()
getName()
Returns the player's name.
getUniqueId()
getUniqueId()
Returns the player's unique ID.
getJoinedAt()
getJoinedAt()
Returns the date the player joined the server.
getQuitAt()
getQuitAt()
Returns the date the player quit the server.
getFirstJoinedAt()
getFirstJoinedAt()
Returns the date the player first joined the server.
getIpAddress()
getIpAddress()
Returns the players IP address.
getEvents()
getEvents()
Returns the players triggered events.
getDomain()
getDomain()
Returns the domain that the player joined from.
getCountry()
getCountry()
Returns the players 2-digit country code.
getType()
getType()
Returns the platform type of the player (JAVA
or BEDROCK
).
track(PlayerEvent)
track(PlayerEvent)
Tracks a player event.
setType(PlayerType)
setType(PlayerType)
Example Usage
Last updated