From 4fd5dff936cab198fdcf0f6a805ea0e4393e8b18 Mon Sep 17 00:00:00 2001 From: simpleauthority Date: Wed, 5 Jun 2019 01:00:51 -0700 Subject: [PATCH] Make PlayerHandshakeEvent async --- .../Add-handshake-event-to-allow-plugins-to-handle-clien.patch | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Spigot-API-Patches/Add-handshake-event-to-allow-plugins-to-handle-clien.patch b/Spigot-API-Patches/Add-handshake-event-to-allow-plugins-to-handle-clien.patch index 2c8f02a389..1d9eadf47f 100644 --- a/Spigot-API-Patches/Add-handshake-event-to-allow-plugins-to-handle-clien.patch +++ b/Spigot-API-Patches/Add-handshake-event-to-allow-plugins-to-handle-clien.patch @@ -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; + }