mojira.dev
MC-264152

run_command can't run /say or /tell

I used the /tellraw command. The command should give a click message. After clicking, a command should run.

What I expected to happen was...:

Clicking should run a command, like /say hi

 

What actually happened was...:

Nothing

 

Steps to Reproduce:
1. Copy the command: tellraw @p {"text":"Hey","clickEvent":{"action":"run_command","value":"/say hi"}}

2. Run it

3. Click on the message

Linked issues

Comments 4

I have the same bug

I'm pretty sure this was mentioned in a changelog that only triggers were left as valid commands, so that players wouldn't send messages which could get reported without their consent.

Yep, nice catch. 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

1.19.1, damm, was so sure it was a 1.20 thing and went over all it's changelogs 5 times. XD

Foxy8_

(Unassigned)

Unconfirmed

1.20.1

Retrieved