Deprecate Player#chat

This commit is contained in:
Noel Németh 2022-06-19 02:41:40 +02:00
parent f9eb273512
commit 5d1e3e80e8
1 changed files with 4 additions and 0 deletions

View File

@ -677,7 +677,11 @@ public class Player extends LivingEntity implements CommandSender, Localizable,
* Makes the player send a message (can be used for commands).
*
* @param message the message that the player will send
* @deprecated Due to Minecraft 1.19 changes, this method can only emulate unsigned messages which
* is unpredictable, therefore we are dropping official support for it.
*/
@Deprecated(forRemoval = true)
@ApiStatus.ScheduledForRemoval(inVersion = "1.0.0")
public void chat(@NotNull String message) {
addPacketToQueue(new ClientChatMessagePacket(message, MessageSignature.UNSIGNED, false));
}