public interface LinkRequest
| Modifier and Type | Method and Description |
|---|---|
String |
getBedrockUsername()
Returns the username of player being linked.
|
UUID |
getJavaUniqueId()
Returns the Java unique id of the linked player.
|
String |
getJavaUsername()
Returns the Java username of the linked player.
|
String |
getLinkCode()
Returns the code that the Bedrock player has to enter in order to link the account.
|
long |
getRequestTime()
Returns the unix time when the player link was requested.
|
boolean |
isExpired(long linkTimeout)
If this player link request is expired.
|
default boolean |
isRequestedPlayer(FloodgatePlayer player)
Checks if the given FloodgatePlayer is the player requested in this LinkRequest.
|
String getJavaUsername()
UUID getJavaUniqueId()
String getLinkCode()
String getBedrockUsername()
long getRequestTime()
boolean isExpired(long linkTimeout)
linkTimeout - the link timeout in millisdefault boolean isRequestedPlayer(FloodgatePlayer player)
FloodgatePlayer.getUsername() and the
edited username FloodgatePlayer.getJavaUsername() and returns true if one of the two
matches.player - the player to check