Class CommonPlayerLink

java.lang.Object
org.geysermc.floodgate.core.link.CommonPlayerLink
Direct Known Subclasses:
GlobalPlayerLinking, PlayerLinkJdbc

public abstract class CommonPlayerLink extends Object
  • Constructor Details

    • CommonPlayerLink

      public CommonPlayerLink()
  • Method Details

    • commonInit

      @Inject public void commonInit(FloodgateConfig config)
    • isRequestedPlayer

      public boolean isRequestedPlayer(LinkRequest request, UUID bedrockId)
      Checks if the given FloodgatePlayer is the player requested in this LinkRequest. This method will check both the real bedrock username FloodgatePlayer.getUsername() and the edited username FloodgatePlayer.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

      public abstract CompletableFuture<LinkedPlayer> fetchLink(@NonNull UUID uuid)
    • isLinked

      public abstract CompletableFuture<Boolean> isLinked(@NonNull UUID uuid)
    • unlink

      public abstract CompletableFuture<Void> unlink(@NonNull UUID uuid)
    • createLinkRequest

      public abstract CompletableFuture<LinkRequest> createLinkRequest(@NonNull UUID javaUniqueId, @NonNull String javaUsername, @NonNull String bedrockUsername, @NonNull String code)
    • linkRequest

      public abstract CompletableFuture<LinkRequest> linkRequest(@NonNull String javaUsername)
    • invalidateLinkRequest

      public abstract CompletableFuture<Void> invalidateLinkRequest(@NonNull LinkRequest request)
    • 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()