Mirror von
https://github.com/PaperMC/Velocity.git
synchronisiert 2024-11-16 21:10:30 +01:00
fix: apply message in PlayerChatEvent
when handling SessionPlayerChatPacket
(#1411)
Fix 1.19.3+ unsigned chat not being changed by `PlayerChatEvent`.
Dieser Commit ist enthalten in:
Ursprung
6f6d55e9e6
Commit
2299b78ad3
@ -71,7 +71,8 @@ public class SessionChatHandler implements ChatHandler<SessionPlayerChatPacket>
|
|||||||
invalidChange(logger, player);
|
invalidChange(logger, player);
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
return this.player.getChatBuilderFactory().builder().message(packet.message)
|
return this.player.getChatBuilderFactory().builder()
|
||||||
|
.message(chatResult.getMessage().orElse(packet.getMessage()))
|
||||||
.setTimestamp(packet.timestamp)
|
.setTimestamp(packet.timestamp)
|
||||||
.setLastSeenMessages(newLastSeenMessages)
|
.setLastSeenMessages(newLastSeenMessages)
|
||||||
.toServer();
|
.toServer();
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren