Class ProxyPingEvent
- java.lang.Object
-
- com.velocitypowered.api.event.proxy.ProxyPingEvent
-
@AwaitingEvent public final class ProxyPingEvent extends Object
This event is fired when a request for server information is sent by a remote client, or when the server sends the MOTD and favicon to the client after a successful login. Velocity will wait on this event to finish firing before delivering the results to the remote client, but you are urged to handle this event as quickly as possible when handling this event due to the amount of ping packets a client can send.
-
-
Constructor Summary
Constructors Constructor Description ProxyPingEvent(InboundConnection connection, ServerPing ping)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description InboundConnectiongetConnection()ServerPinggetPing()voidsetPing(ServerPing ping)StringtoString()
-
-
-
Constructor Detail
-
ProxyPingEvent
public ProxyPingEvent(InboundConnection connection, ServerPing ping)
-
-
Method Detail
-
getConnection
public InboundConnection getConnection()
-
getPing
public ServerPing getPing()
-
setPing
public void setPing(ServerPing ping)
-
-