mirror of
https://github.com/PaperMC/Paper.git
synced 2024-12-29 15:49:00 +01:00
Make PlayerHandshakeEvent async
This commit is contained in:
parent
f2eac5efae
commit
4fd5dff936
1 changed files with 2 additions and 1 deletions
|
@ -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;
|
||||
+ }
|
||||
|
|
Loading…
Reference in a new issue