Package org.geysermc.floodgate.core.link
Class CommonPlayerLink
java.lang.Object
org.geysermc.floodgate.core.link.CommonPlayerLink
- Direct Known Subclasses:
GlobalPlayerLinking,LocalPlayerLinking
-
Nested Class Summary
Nested Classes -
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.api.GeyserApiBasegetApi()protected FloodgateLoggerlongabstract CompletableFuture<Void>invalidateLinkRequest(@NonNull LinkRequest request) 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) state()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
-
state
-
isEnabled
public boolean isEnabled() -
isAllowLinking
public boolean isAllowLinking() -
getVerifyLinkTimeout
public long getVerifyLinkTimeout() -
getLogger
-
getApi
protected org.geysermc.api.GeyserApiBase getApi()
-