mirror of
https://github.com/PaperMC/Paper.git
synced 2024-12-28 15:30:19 +01:00
Make PlayerHandshakeEvent async
This commit is contained in:
parent
523545e809
commit
0c14711c28
1 changed files with 5 additions and 4 deletions
|
@ -1,4 +1,4 @@
|
|||
From a9b5a8389171801c37d2e93174582e96087d161f Mon Sep 17 00:00:00 2001
|
||||
From 09d30e91ba35eb1520c4f89087469bde676cced4 Mon Sep 17 00:00:00 2001
|
||||
From: kashike <kashike@vq.lc>
|
||||
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
|
||||
|
||||
|
|
Loading…
Reference in a new issue