Class GS4QueryEvent
java.lang.Object
org.bukkit.event.Event
com.destroystokyo.paper.event.server.GS4QueryEvent
This event is fired if server is getting queried over GS4 Query protocol
Adapted from Velocity's ProxyQueryEvent
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic final class
static enum
The type of queryNested classes/interfaces inherited from class org.bukkit.event.Event
Event.Result
-
Constructor Summary
ConstructorDescriptionGS4QueryEvent
(@NotNull GS4QueryEvent.QueryType queryType, @NotNull InetAddress querierAddress, @NotNull GS4QueryEvent.QueryResponse response) -
Method Summary
Modifier and TypeMethodDescriptionstatic @NotNull HandlerList
Get querier addressGet query typeGet query responsevoid
setResponse
(@NotNull GS4QueryEvent.QueryResponse response) Set query responsetoString()
Methods inherited from class org.bukkit.event.Event
callEvent, getEventName, isAsynchronous
-
Constructor Details
-
GS4QueryEvent
public GS4QueryEvent(@NotNull @NotNull GS4QueryEvent.QueryType queryType, @NotNull @NotNull InetAddress querierAddress, @NotNull @NotNull GS4QueryEvent.QueryResponse response)
-
-
Method Details
-
getQueryType
Get query type- Returns:
- query type
-
getQuerierAddress
Get querier address- Returns:
- querier address
-
getResponse
Get query response- Returns:
- query response
-
setResponse
Set query response- Parameters:
response
- query response
-
toString
-
getHandlers
- Specified by:
getHandlers
in classEvent
-
getHandlerList
-