1
0
mirror of https://github.com/PaperMC/Paper.git synced 2025-03-23 20:19:36 +01:00

Flag GS4QueryEvent as async

This commit is contained in:
Zach Brown 2019-06-02 22:36:39 -05:00
parent 692aedda04
commit f2eac5efae

View File

@ -6,7 +6,7 @@ Subject: [PATCH] Add GS4 Query event
diff --git a/src/main/java/com/destroystokyo/paper/event/server/GS4QueryEvent.java b/src/main/java/com/destroystokyo/paper/event/server/GS4QueryEvent.java
new file mode 100644
index 00000000..2ead0466
index 00000000..77a19995
--- /dev/null
+++ b/src/main/java/com/destroystokyo/paper/event/server/GS4QueryEvent.java
@@ -0,0 +0,0 @@
@ -39,6 +39,7 @@ index 00000000..2ead0466
+ private QueryResponse response;
+
+ public GS4QueryEvent(@NotNull QueryType queryType, @NotNull InetAddress querierAddress, @NotNull QueryResponse response) {
+ super(true); // should always be called async
+ this.queryType = Preconditions.checkNotNull(queryType, "queryType");
+ this.querierAddress = Preconditions.checkNotNull(querierAddress, "querierAddress");
+ this.response = Preconditions.checkNotNull(response, "response");