Interface ClientPingServerEvent
-
- All Superinterfaces:
Cancellable,Event
public interface ClientPingServerEvent extends Event, Cancellable
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
Nested Classes Modifier and Type Interface Description static interfaceClientPingServerEvent.ResponseRepresents a mutable response to a status request.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description StatusClientclient()Gets the client pinging the server.ClientPingServerEvent.Responseresponse()Gets the response that is about to be sent to the client.-
Methods inherited from interface org.spongepowered.api.event.Cancellable
isCancelled, setCancelled
-
-
-
-
Method Detail
-
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
-
-