Package org.geysermc.floodgate.api.link
Interface LinkRequest
Deprecated, for removal: This API element is subject to removal in a future version.
The Floodgate API has been deprecated in favor of the GeyserApi, which is shared between Geyser
and Floodgate
-
Method Summary
Modifier and TypeMethodDescriptionDeprecated, for removal: This API element is subject to removal in a future version.Returns the username of player being linked.Deprecated, for removal: This API element is subject to removal in a future version.Returns the Java unique id of the linked player.Deprecated, for removal: This API element is subject to removal in a future version.Returns the Java username of the linked player.Deprecated, for removal: This API element is subject to removal in a future version.Returns the code that the Bedrock player has to enter in order to link the account.longDeprecated, for removal: This API element is subject to removal in a future version.Returns the unix time when the player link was requested.booleanisExpired(long linkTimeout) Deprecated, for removal: This API element is subject to removal in a future version.If this player link request is expired.default booleanisRequestedPlayer(FloodgatePlayer player) Deprecated, for removal: This API element is subject to removal in a future version.Checks if the given FloodgatePlayer is the player requested in this LinkRequest.
-
Method Details
-
getJavaUsername
String getJavaUsername()Deprecated, for removal: This API element is subject to removal in a future version.Returns the Java username of the linked player. -
getJavaUniqueId
UUID getJavaUniqueId()Deprecated, for removal: This API element is subject to removal in a future version.Returns the Java unique id of the linked player. -
getLinkCode
String getLinkCode()Deprecated, for removal: This API element is subject to removal in a future version.Returns the code that the Bedrock player has to enter in order to link the account. -
getBedrockUsername
String getBedrockUsername()Deprecated, for removal: This API element is subject to removal in a future version.Returns the username of player being linked. -
getRequestTime
long getRequestTime()Deprecated, for removal: This API element is subject to removal in a future version.Returns the unix time when the player link was requested. -
isExpired
boolean isExpired(long linkTimeout) Deprecated, for removal: This API element is subject to removal in a future version.If this player link request is expired.- Parameters:
linkTimeout- the link timeout in millis- Returns:
- true if the difference between now and requestTime is greater then the link timout
-
isRequestedPlayer
Deprecated, for removal: This API element is subject to removal in a future version.Checks if the given FloodgatePlayer is the player requested in this LinkRequest. This method will check both the real bedrock usernameFloodgatePlayer.getUsername()and the edited usernameFloodgatePlayer.getJavaUsername()and returns true if one of the two matches.- Parameters:
player- the player to check- Returns:
- true if the given player is the player requested
-