Class FloodgateHandshakeHandler

java.lang.Object
org.geysermc.floodgate.core.connection.FloodgateHandshakeHandler

@Singleton public final class FloodgateHandshakeHandler extends Object
  • Constructor Details

    • FloodgateHandshakeHandler

      public FloodgateHandshakeHandler()
  • Method Details

    • separateHostname

      public HostnameSeparationResult separateHostname(@NonNull @NonNull String hostname)
      Separates the Floodgate data from the hostname
      Parameters:
      hostname - the string to look in
      Returns:
      The first string is the Floodgate data (or null if there isn't) and the second string is the hostname without the Floodgate.
    • handle

      public CompletableFuture<FloodgateHandshakeHandler.HandshakeResult> handle(@NonNull @NonNull io.netty.channel.Channel channel, @NonNull @NonNull String floodgateDataString, @NonNull @NonNull String hostname)