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 interface
ClientPingServerEvent.Response
Represents a mutable response to a status request.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description StatusClient
client()
Gets the client pinging the server.ClientPingServerEvent.Response
response()
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
-
-