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:
@@ -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);
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user