Skip to content
This repository has been archived by the owner on Jul 15, 2022. It is now read-only.

Commit

Permalink
Revert broken chat PR and align with Spigot
Browse files Browse the repository at this point in the history
  • Loading branch information
md-5 committed Jun 8, 2022
1 parent e46bc34 commit ff5727c
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion proxy/src/main/java/net/md_5/bungee/UserConnection.java
Original file line number Diff line number Diff line change
Expand Up @@ -479,7 +479,13 @@ private void sendMessage(ChatMessageType position, UUID sender, String message)
{
if ( getPendingConnection().getVersion() >= ProtocolConstants.MINECRAFT_1_19 )
{
unsafe().sendPacket( new SystemChat( message, position.ordinal() - 1 ) ); // For system messages, the CHAT position is not supported.
// Align with Spigot and remove client side formatting for now
if ( position == ChatMessageType.CHAT )
{
position = ChatMessageType.SYSTEM;
}

unsafe().sendPacket( new SystemChat( message, position.ordinal() ) );
} else
{
unsafe().sendPacket( new Chat( message, (byte) position.ordinal(), sender ) );
Expand Down

0 comments on commit ff5727c

Please sign in to comment.