-
-
Notifications
You must be signed in to change notification settings - Fork 215
Open
Labels
bugSomething isn't workingSomething isn't working
Description
When I use the following code to modify the message content of SystemChat (modifying show_item's nbt), all the item information in the final modified packet is lost
PacketType.Play.Server.SYSTEM_CHAT_MESSAGE -> {
val wrapper = WrapperPlayServerSystemChatMessage(e)
val message = wrapper.message
wrapper.message = DisplayReplacer.inst.apply(message, player)
info("B")
}Below is the content received by the player when using Player.sendMessage(Component) and when wrapper.message = Component (the content starting with "Re" is from sendMessage):
PacketEvents: 2.11.2
Server: Paper 1.21.11
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working