1
0
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:
Tim203
2021-01-31 23:05:25 +01:00
parent 048cb6d1a1
commit 700b377e43
3 changed files with 19 additions and 2 deletions

View File

@@ -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.
*/