Interface HandshakeData
Deprecated.
For advanced users only! You shouldn't play with this unless you know what you're doing.
This class allows you change specific things of a Bedrock player before it is applied to the server. Note that at the time I'm writing this that the HandshakeData is created after requesting the player link. So the link is present here, if applicable.
This class allows you change specific things of a Bedrock player before it is applied to the server. Note that at the time I'm writing this that the HandshakeData is created after requesting the player link. So the link is present here, if applicable.
-
Method Summary
Modifier and TypeMethodDescriptionDeprecated.Returns the decrypted BedrockData sent by Geyser or null if the player isn't a Floodgate player.io.netty.channel.ChannelDeprecated.Returns the Channel holding the connection between the client and the server.Deprecated.Deprecated.Deprecated.Returns the reason to disconnect the current player.Deprecated.Returns the hostname used in the handshake packet.getIp()Deprecated.Returns the IP address of the client.Deprecated.Deprecated.Deprecated.Returns the linked account associated with the client or null if the player isn't linked or not a Floodgate player.booleanDeprecated.Returns true if the given player is a Floodgate player, false otherwise.voidsetDisconnectReason(String reason) Deprecated.Set the reason to disconnect the current player.voidsetHostname(String hostname) Deprecated.Set the hostname of the handshake packet.voidDeprecated.Set the IP address of the connected client.voidsetLinkedPlayer(LinkedPlayer player) Deprecated.Set the LinkedPlayer.default booleanDeprecated.Returns if the player should be disconnected
-
Method Details
-
getChannel
io.netty.channel.Channel getChannel()Deprecated.Returns the Channel holding the connection between the client and the server. -
isFloodgatePlayer
boolean isFloodgatePlayer()Deprecated.Returns true if the given player is a Floodgate player, false otherwise. -
getBedrockData
BedrockData getBedrockData()Deprecated.Returns the decrypted BedrockData sent by Geyser or null if the player isn't a Floodgate player. -
getJavaUsername
String getJavaUsername()Deprecated. -
getCorrectUsername
String getCorrectUsername()Deprecated. -
getJavaUniqueId
UUID getJavaUniqueId()Deprecated. -
getCorrectUniqueId
UUID getCorrectUniqueId()Deprecated. -
getLinkedPlayer
LinkedPlayer getLinkedPlayer()Deprecated.Returns the linked account associated with the client or null if the player isn't linked or not a Floodgate player. -
setLinkedPlayer
Deprecated.Set the LinkedPlayer. This will be ignored if the player isn't a Floodgate player- Parameters:
player- the player to use as link
-
getHostname
String getHostname()Deprecated.Returns the hostname used in the handshake packet. This is the hostname after Floodgate removed the data. -
setHostname
Deprecated.Set the hostname of the handshake packet. Changing it here will also change it in the handshake packet.- Parameters:
hostname- the new hostname
-
getIp
String getIp()Deprecated.Returns the IP address of the client. The initial value isBedrockData.getIp()when BedrockData isn't null, or null if BedrockData is null. This method will return the changed IP if it has been changed usingsetIp(String) -
setIp
Deprecated.Set the IP address of the connected client. Floodgate doesn't perform any checks if the provided data is valid (hence one of the reasons why this class has been made for advanced users), thank you for not abusing Floodgate's trust in you :)- Parameters:
address- the IP address of the client
-
getDisconnectReason
String getDisconnectReason()Deprecated.Returns the reason to disconnect the current player. -
setDisconnectReason
Deprecated.Set the reason to disconnect the current player.- Parameters:
reason- the reason to disconnect
-
shouldDisconnect
default boolean shouldDisconnect()Deprecated.Returns if the player should be disconnected
-