1
0
mirror of https://github.com/GeyserMC/Floodgate.git synced 2025-12-31 04:36:47 +00:00

Added whitelist command, allow handler to set IP of non-Java players

This commit is contained in:
Tim203
2021-02-27 12:01:46 +01:00
parent 3a66d524a1
commit f53032e9ea
9 changed files with 95 additions and 64 deletions

View File

@@ -90,20 +90,20 @@ 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)}
* Returns the IP address of the client. The initial value is {@link BedrockData#getIp()} when
* BedrockData isn't null, or null if BedrockData is null. This method will return the changed
* IP if it has been changed using {@link #setIp(String)}
*/
String getBedrockIp();
String getIp();
/**
* Set the IP address of the Bedrock client. Floodgate doesn't perform any checks if the
* 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 :)
*
* @param address the IP address of the Bedrock client
* @param address the IP address of the client
*/
void setBedrockIp(String address);
void setIp(String address);
/**
* Returns the reason to disconnect the current player.