Package org.geysermc.floodgate.core.link
Class CommonPlayerLink
java.lang.Object
org.geysermc.floodgate.core.link.CommonPlayerLink
- Direct Known Subclasses:
GlobalPlayerLinking,PlayerLinkHibernate
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract CompletableFuture<LinkedPlayer>voidcommonInit(FloodgateConfig config) abstract CompletableFuture<LinkRequest>createLinkRequest(@NonNull UUID javaUniqueId, @NonNull String javaUsername, @NonNull String bedrockUsername, @NonNull String code) abstract CompletableFuture<LinkedPlayer>protected org.geysermc.floodgate.api.FloodgateApigetApi()protected org.geysermc.floodgate.api.logger.FloodgateLoggerlongabstract CompletableFuture<Void>invalidateLinkRequest(@NonNull LinkRequest request) booleanisActive()booleanbooleanabstract CompletableFuture<Boolean>booleanisRequestedPlayer(LinkRequest request, UUID bedrockId) Checks if the given FloodgatePlayer is the player requested in this LinkRequest.abstract CompletableFuture<LinkRequest>linkRequest(@NonNull String javaUsername) abstract CompletableFuture<Void>
-
Constructor Details
-
CommonPlayerLink
public CommonPlayerLink()
-
-
Method Details
-
commonInit
-
isRequestedPlayer
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.- Returns:
- true if the given player is the player requested
-
addLink
public abstract CompletableFuture<LinkedPlayer> addLink(@NonNull UUID javaUniqueId, @NonNull String javaUsername, @NonNull UUID bedrockId) -
fetchLink
-
isLinked
-
unlink
-
createLinkRequest
public abstract CompletableFuture<LinkRequest> createLinkRequest(@NonNull UUID javaUniqueId, @NonNull String javaUsername, @NonNull String bedrockUsername, @NonNull String code) -
linkRequest
-
invalidateLinkRequest
-
isActive
public boolean isActive() -
isEnabled
public boolean isEnabled() -
isAllowLinking
public boolean isAllowLinking() -
getVerifyLinkTimeout
public long getVerifyLinkTimeout() -
getLogger
protected org.geysermc.floodgate.api.logger.FloodgateLogger getLogger() -
getApi
protected org.geysermc.floodgate.api.FloodgateApi getApi()
-