[SPIGOT-3211] "Chat: commands only" setting is ignored Created: 29/Apr/17  Updated: 27/Jul/18

Status: Open
Project: Spigot
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Bug Priority: Minor
Reporter: pokechu22 Assignee: Unassigned
Resolution: Unresolved Votes: 1
Labels: chat

Issue Links:
Duplicate
is duplicated by SPIGOT-4170 Chat messages don't use the translata... Resolved

 Description   

Players receive chat even if they've set chat to "commands only" in chat settings.

This behavior is different from vanilla, where the message will not be visible. (Note: this issue is almost the oposite of MC-116824, where too little is visible. MC-116824 is actually fixed in craftbukkit already)

To reproduce

  1. Connect two accounts to a server
  2. In one account, make sure that chat settings is set to "commands only".
  3. In the other, make sure it is set to "shown".
  4. Say something from the player set to shown.
  5. Observe that it is visible from both players, even though one player has chat disabled.

This is a fixable issue both without any chat plugins, and with chat plugins that use AsyncPlayerChatEvent.setFormat. (For chat plugins that manually send chat messages, this is not fixable easily).



 Comments   
Comment by md_5 [ 29/Apr/17 ]

I actually undid the fix for MC-116824

Comment by md_5 [ 29/Apr/17 ]

Actually I don't think I fixed exactly this bug.

Comment by md_5 [ 29/Apr/17 ]

Yeah I noticed this and fixed it in 1.12

Generated at Fri Mar 14 09:35:33 UTC 2025 using Jira 10.3.3#10030003-sha1:d220e3fefc8dfc6d47f522d3b9a20c1455e12b7b.