Interface ClientPingServerEvent
- All Superinterfaces:
Cancellable
,Event
Called when a client pings the server from the server list.
If this event gets cancelled, it will close the client connection without sending any response.
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic interface
Represents a mutable response to a status request. -
Method Summary
Methods inherited from interface org.spongepowered.api.event.Cancellable
isCancelled, setCancelled
-
Method Details
-
client
StatusClient client()Gets the client pinging the server.- Returns:
- The client of the status request
-
response
ClientPingServerEvent.Response response()Gets the response that is about to be sent to the client.- Returns:
- The response to the status request
-