mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-10 02:07:37 +01:00
#770: Send messages without sender with SYSTEM type again
This was the behaviour before the 1.16 update and made it so that any message sent by a plugin was treated as a system message allowing the player to disable chat messages while keeping access to commands. After 1.16 disabling the chat also disabled any plugin output, this restores the original behaviour. By: Phoenix616 <max@themoep.de>
This commit is contained in:
parent
fa835a16a8
commit
ec41049c8d
@ -195,7 +195,7 @@ public class CraftPlayer extends CraftHumanEntity implements Player {
|
||||
if (getHandle().playerConnection == null) return;
|
||||
|
||||
for (IChatBaseComponent component : CraftChatMessage.fromString(message)) {
|
||||
getHandle().playerConnection.sendPacket(new PacketPlayOutChat(component, ChatMessageType.CHAT, SystemUtils.b));
|
||||
getHandle().playerConnection.sendPacket(new PacketPlayOutChat(component, ChatMessageType.SYSTEM, SystemUtils.b));
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user