From 0c14711c281926c6f7d3b4fa9862d53646b8e4f8 Mon Sep 17 00:00:00 2001 From: simpleauthority Date: Wed, 5 Jun 2019 01:00:51 -0700 Subject: [PATCH] Make PlayerHandshakeEvent async --- ...andshake-event-to-allow-plugins-to-handle-clien.patch | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/Spigot-API-Patches/0033-Add-handshake-event-to-allow-plugins-to-handle-clien.patch b/Spigot-API-Patches/0033-Add-handshake-event-to-allow-plugins-to-handle-clien.patch index c1cf89e2db..d7e84e846d 100644 --- a/Spigot-API-Patches/0033-Add-handshake-event-to-allow-plugins-to-handle-clien.patch +++ b/Spigot-API-Patches/0033-Add-handshake-event-to-allow-plugins-to-handle-clien.patch @@ -1,4 +1,4 @@ -From a9b5a8389171801c37d2e93174582e96087d161f Mon Sep 17 00:00:00 2001 +From 09d30e91ba35eb1520c4f89087469bde676cced4 Mon Sep 17 00:00:00 2001 From: kashike Date: Wed, 13 Apr 2016 20:20:18 -0700 Subject: [PATCH] Add handshake event to allow plugins to handle client @@ -7,10 +7,10 @@ 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 +1,221 @@ +@@ -0,0 +1,222 @@ +package com.destroystokyo.paper.event.player; + +import org.apache.commons.lang.Validate; @@ -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; + } @@ -233,5 +234,5 @@ index 00000000..46d6f6ad + } +} -- -2.21.0 +2.19.2