Package net.md_5.bungee.api.event
Class ProxyPingEvent
Called when the proxy is queried for status from the server list.
-
Constructor Summary
ConstructorDescriptionProxyPingEvent
(PendingConnection connection, ServerPing response, boolean legacy, Callback<ProxyPingEvent> done) ProxyPingEvent
(PendingConnection connection, ServerPing response, Callback<ProxyPingEvent> done) -
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
boolean
The connection asking for a ping response.The data to respond with.int
hashCode()
boolean
isLegacy()
Whether this event was called for a legacy pingvoid
setResponse
(ServerPing response) The data to respond with.toString()
Methods inherited from class net.md_5.bungee.api.event.AsyncEvent
completeIntent, postCall, registerIntent
-
Constructor Details
-
ProxyPingEvent
public ProxyPingEvent(PendingConnection connection, ServerPing response, Callback<ProxyPingEvent> done) -
ProxyPingEvent
public ProxyPingEvent(PendingConnection connection, ServerPing response, boolean legacy, Callback<ProxyPingEvent> done)
-
-
Method Details
-
getConnection
The connection asking for a ping response. -
getResponse
The data to respond with. -
isLegacy
public boolean isLegacy()Whether this event was called for a legacy ping -
setResponse
The data to respond with. -
toString
- Overrides:
toString
in classAsyncEvent<ProxyPingEvent>
-
equals
- Overrides:
equals
in classAsyncEvent<ProxyPingEvent>
-
canEqual
- Overrides:
canEqual
in classAsyncEvent<ProxyPingEvent>
-
hashCode
public int hashCode()- Overrides:
hashCode
in classAsyncEvent<ProxyPingEvent>
-