mojira.dev
MC-253813

Chat commands with entity selectors often reported as "This message is not secure"

The bug

On a dedicated server, when having permission level >= 2 and using chat commands such as /say or /me with messages containing entity selectors the message is often reported as "This message is not secure".

There seem to be some general flaws:

  • Unless previews-chat=true is enabled for the server and the client has enabled chat preview and the client waits long enough for the preview to be signed before sending the command, the message seems to be reported as "not secure"

  • And even with the above preconditions, when the selector result differs between signed preview and sending of the command the message will be reported as "not secure". This can for example be seen with @e when the entities on the server change rapidly.

Reproduction steps

  1. Start a dedicated server with previews-chat=false (the default)

  2. Join the server

  3. Make sure you have a permission level >= 2 (e.g. /op yourself)

  4. Use the following command

    /say @s

    ❌ In chat the message is marked as "This message is not secure"

Linked issues

Attachments

Comments 1

Probably because entities can be named anything, and you're not exactly typing the message as it appears in chat history (which replaced the selector with entity names).

Seems pretty logical to me.

marcono1234

(Unassigned)

Confirmed

Normal

Social Interactions

1.19.1 Pre-release 2

1.19.1 Pre-release 4

Retrieved