mirror of
https://github.com/GeyserMC/Geyser.git
synced 2024-08-14 23:57:35 +00:00
Cleanup some ping passthrough stuff (#2726)
This commit is contained in:
parent
4c409f98f3
commit
6cd8b3387c
3 changed files with 16 additions and 7 deletions
|
@ -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);
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue