mojira.dev
MC-279264

click_event "run_command" action fails with commands /say and /tell

The "run_command" action on text with the click_event text component fails if the command is /say or /tell, which are fairly harmless commands. Meanwhile the "suggest_command" still works and has nearly the same format. An error is produced in the output log, but most player will have no feedback as to why the clicked text does nothing.

Steps to reproduce:

1. Run commandΒ 

/tellraw @p [{text:"click me to say hi",click_event:{action:'run_command',command:'/say hi'}}]

2. Click the text in your chat. Nothing happens.

3. Replace the action with "suggest_command", proving that suggest_command still works.Β 

/tellraw @p [{text:"click me to say hi",click_event:{action:'suggest_command',command:'/say hi'}}]

Linked issues

Attachments

Comments 3

Sending chat messages via run_command is not allowed since 1.19.1:

From the 1.19.1 changelog:

The run_command click event for text components no longer supports sending chat messages directly

    Commands such as /say that produce a signed player chat message are not allowed

Duplicate of MC-264152

Ah. Yeah I guess I used the exact wrong test case when playing with the new format. Whoops.

I'll update the report title and description. Probably not a bug anymore, though. It would be nice if the error message was shown in chat, though. I didn't realize what was happening until I checked the output log.

Thank you for your report!
We're tracking this issue in MC-264152, so this ticket is being resolved and linked as a duplicate.

If you would like to add a vote and any extra information to the main ticket it would be appreciated.

If you haven't already, you might like to make use of the search feature to see if the issue has already been mentioned.

Quick Links:
πŸ““ Bug Tracker Guidelines – πŸ’¬ Community Support – πŸ“§ Mojang Support (Technical Issues) – πŸ“§ Microsoft Support (Account Issues)
πŸ““ Project Summary – ✍️ Feedback and Suggestions – πŸ“– Game Wiki
-- I am a bot. This action was performed automatically! The ticket was resolved by one of our moderators, and I left this message to give more information to you.

Flamingosaurus

(Unassigned)

Unconfirmed

(Unassigned)

25w02a

Retrieved