mirror of
https://hub.spigotmc.org/stash/scm/spigot/craftbukkit.git
synced 2025-09-18 21:54:50 +00: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.
This commit is contained in:
parent
4475707d74
commit
167ff59173
1 changed files with 1 additions and 1 deletions
|
@ -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…
Add table
Reference in a new issue