Package org.geysermc.geyser.ping
Interface IGeyserPingPassthrough
- All Known Implementing Classes:
GeyserBungeePingPassthrough,GeyserLegacyPingPassthrough,GeyserSpigotPingPassthrough,GeyserSpongePingPassthrough,GeyserVelocityPingPassthrough
public interface IGeyserPingPassthrough
Interface that retrieves ping passthrough information from the Java server
-
Method Summary
Modifier and TypeMethodDescriptiondefault GeyserPingInfoGet the MOTD of the server displayed on the multiplayer screen.getPingInformation(InetSocketAddress inetSocketAddress)Get the MOTD of the server displayed on the multiplayer screen
-
Method Details
-
getPingInformation
Get the MOTD of the server displayed on the multiplayer screen. It uses a fake remote, as the remote isn't important in this context.- Returns:
- string of the MOTD
-
getPingInformation
Get the MOTD of the server displayed on the multiplayer screen- Parameters:
inetSocketAddress- the ip address of the client pinging the server- Returns:
- string of the MOTD
-