mirror of
https://github.com/GeyserMC/Floodgate.git
synced 2025-12-30 12:19:22 +00:00
Allow the IP of the Bedrock client to be changed
This commit is contained in:
@@ -102,6 +102,22 @@ public interface HandshakeData {
|
||||
*/
|
||||
void setHostname(String hostname);
|
||||
|
||||
/**
|
||||
* Returns the IP address of the Bedrock client. The initial value is {@link
|
||||
* BedrockData#getIp()} (or null if BedrockData is null) but will return the changed IP if it
|
||||
* has been changed using {@link #setBedrockIp(String)}
|
||||
*/
|
||||
String getBedrockIp();
|
||||
|
||||
/**
|
||||
* Set the IP address of the Bedrock 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 :)
|
||||
*
|
||||
* @param address the IP address of the Bedrock client
|
||||
*/
|
||||
void setBedrockIp(String address);
|
||||
|
||||
/**
|
||||
* Returns the reason to disconnect the current player.
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user