Package org.geysermc.geyser.ping
Class GeyserLegacyPingPassthrough
java.lang.Object
org.geysermc.geyser.ping.GeyserLegacyPingPassthrough
- All Implemented Interfaces:
Runnable
,IGeyserPingPassthrough
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetPingInformation(InetSocketAddress inetSocketAddress)
Get the MOTD of the server displayed on the multiplayer screenstatic IGeyserPingPassthrough
init(GeyserImpl geyser)
Start legacy ping passthrough threadvoid
run()
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.geysermc.geyser.ping.IGeyserPingPassthrough
getPingInformation
-
Constructor Details
-
GeyserLegacyPingPassthrough
-
-
Method Details
-
init
Start legacy ping passthrough thread- Parameters:
geyser
- Geyser- Returns:
- GeyserPingPassthrough, or null if not initialized
-
getPingInformation
Description copied from interface:IGeyserPingPassthrough
Get the MOTD of the server displayed on the multiplayer screen- Specified by:
getPingInformation
in interfaceIGeyserPingPassthrough
- Parameters:
inetSocketAddress
- the ip address of the client pinging the server- Returns:
- string of the MOTD
-
run
public void run()
-