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

Cleanup some ping passthrough stuff (#2726)

This commit is contained in:
Konicai
2021-12-22 23:05:56 -05:00
committed by GitHub
parent 4c409f98f3
commit 6cd8b3387c
3 changed files with 16 additions and 7 deletions

View File

@@ -25,6 +25,7 @@
package org.geysermc.geyser.ping;
import javax.annotation.Nullable;
import java.net.Inet4Address;
import java.net.InetSocketAddress;
@@ -38,6 +39,7 @@ public interface IGeyserPingPassthrough {
*
* @return string of the MOTD
*/
@Nullable
default GeyserPingInfo getPingInformation() {
return this.getPingInformation(new InetSocketAddress(Inet4Address.getLoopbackAddress(), 69));
}
@@ -48,6 +50,7 @@ public interface IGeyserPingPassthrough {
* @param inetSocketAddress the ip address of the client pinging the server
* @return string of the MOTD
*/
@Nullable
GeyserPingInfo getPingInformation(InetSocketAddress inetSocketAddress);
}