mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-15 14:13:56 +01:00
[ci skip] Improve PlayerChatEvent Deprecation Message (#9956)
This commit is contained in:
parent
9d5f483cc9
commit
ea37ffa71d
1 changed files with 10 additions and 4 deletions
|
@ -3214,10 +3214,16 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
|
||||||
--- a/src/main/java/org/bukkit/event/player/PlayerChatEvent.java
|
--- a/src/main/java/org/bukkit/event/player/PlayerChatEvent.java
|
||||||
+++ b/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;
|
@@ -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
|
* Holds information for player chat and commands
|
||||||
* alternative for thread safe implementations.
|
*
|
||||||
+ * @deprecated use {@link io.papermc.paper.event.player.ChatEvent} instead
|
- * @deprecated This event will fire from the main thread and allows the use of
|
||||||
|
- * all of the Bukkit API, unlike the {@link AsyncPlayerChatEvent}.
|
||||||
|
- * <p>
|
||||||
|
- * 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
|
@Deprecated
|
||||||
@Warning(reason = "Listening to this event forces chat to wait for the main thread, delaying chat messages.")
|
@Warning(reason = "Listening to this event forces chat to wait for the main thread, delaying chat messages.")
|
||||||
|
|
Loading…
Reference in a new issue