From ea37ffa71da5f1c5c809aa182652573d6dd2e02e Mon Sep 17 00:00:00 2001 From: Tamion <70228790+notTamion@users.noreply.github.com> Date: Wed, 22 Nov 2023 05:46:51 +0100 Subject: [PATCH] [ci skip] Improve PlayerChatEvent Deprecation Message (#9956) --- patches/api/Adventure.patch | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/patches/api/Adventure.patch b/patches/api/Adventure.patch index df1c751ecb..86e1b43536 100644 --- a/patches/api/Adventure.patch +++ b/patches/api/Adventure.patch @@ -3214,10 +3214,16 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000 --- a/src/main/java/org/bukkit/event/player/PlayerChatEvent.java +++ b/src/main/java/org/bukkit/event/player/PlayerChatEvent.java @@ -0,0 +0,0 @@ import org.jetbrains.annotations.NotNull; - * Listening to this event forces chat to wait for the main thread which - * causes delays for chat. {@link AsyncPlayerChatEvent} is the encouraged - * alternative for thread safe implementations. -+ * @deprecated use {@link io.papermc.paper.event.player.ChatEvent} instead + /** + * Holds information for player chat and commands + * +- * @deprecated This event will fire from the main thread and allows the use of +- * all of the Bukkit API, unlike the {@link AsyncPlayerChatEvent}. +- *

+- * Listening to this event forces chat to wait for the main thread which +- * causes delays for chat. {@link AsyncPlayerChatEvent} is the encouraged +- * alternative for thread safe implementations. ++ * @deprecated Listening to this event forces chat to wait for the main thread, delaying chat messages. It is recommended to use {@link io.papermc.paper.event.player.AsyncChatEvent} instead, wherever possible. */ @Deprecated @Warning(reason = "Listening to this event forces chat to wait for the main thread, delaying chat messages.")