Make PlayerHandshakeEvent async

This commit is contained in:
simpleauthority 2019-06-05 01:00:51 -07:00
parent f2eac5efae
commit 4fd5dff936

View file

@ -7,7 +7,7 @@ Subject: [PATCH] Add handshake event to allow plugins to handle client
diff --git a/src/main/java/com/destroystokyo/paper/event/player/PlayerHandshakeEvent.java b/src/main/java/com/destroystokyo/paper/event/player/PlayerHandshakeEvent.java
new file mode 100644
index 00000000..46d6f6ad
index 00000000..f0bb4e31
--- /dev/null
+++ b/src/main/java/com/destroystokyo/paper/event/player/PlayerHandshakeEvent.java
@@ -0,0 +0,0 @@
@ -49,6 +49,7 @@ index 00000000..46d6f6ad
+ * @param cancelled if this event is enabled
+ */
+ public PlayerHandshakeEvent(@NotNull String originalHandshake, boolean cancelled) {
+ super(true);
+ this.originalHandshake = originalHandshake;
+ this.cancelled = cancelled;
+ }