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
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
(GS4QueryEvent.QueryType queryType, InetAddress querierAddress, GS4QueryEvent.QueryResponse response) -
Method Summary
Modifier and TypeMethodDescriptionstatic HandlerList
Get querier addressGet query typeGet query responsevoid
setResponse
(GS4QueryEvent.QueryResponse response) Set query responseMethods inherited from class org.bukkit.event.Event
callEvent, getEventName, isAsynchronous
-
Constructor Details
-
GS4QueryEvent
@Internal public GS4QueryEvent(GS4QueryEvent.QueryType queryType, InetAddress querierAddress, 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
-
getHandlers
- Specified by:
getHandlers
in classEvent
-
getHandlerList
-