Skip to content

Commit

Permalink
feat: handle tablist playernames
Browse files Browse the repository at this point in the history
  • Loading branch information
Boy0000 committed Jun 8, 2024
1 parent d917e8d commit fe06198
Showing 1 changed file with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,13 @@ class EmojyNMSHandler(emojy: EmojyPlugin) : IEmojyNMSHandler {

packet
}
is ClientboundPlayerInfoUpdatePacket ->
ClientboundPlayerInfoUpdatePacket(packet.actions(), packet.entries().map {
ClientboundPlayerInfoUpdatePacket.Entry(
it.profileId, it.profile, it.listed, it.latency, it.gameMode,
it.displayName?.transformEmotes(connection.locale()), it.chatSession
)
})
else -> packet
}, promise
)
Expand Down

0 comments on commit fe06198

Please sign in to comment.