Class FloodgateHandshakeHandler
java.lang.Object
org.geysermc.floodgate.core.player.FloodgateHandshakeHandler
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic enum -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionhandle(@NonNull io.netty.channel.Channel channel, @NonNull String floodgateDataString, @NonNull String hostname) separateHostname(@NonNull String hostname) Separates the Floodgate data from the hostname
-
Constructor Details
-
FloodgateHandshakeHandler
public FloodgateHandshakeHandler()
-
-
Method Details
-
separateHostname
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)
-