mojira.dev
MC-63748

Commands with incorrect syntax executed for multiple entities prints error message multiple times

The bug

Executing a command with incorrect syntax for multiple entities prints the error message multiple times. Expected would be that it is printed only once.

How to reproduce

Make sure there are multiple entities in your world and then use the following command

/entitydata @e

→ You should get the error message multiple times

Linked issues

Attachments

Comments 3

Suggested fix: test commands for valid syntax before evaluating selectors and (in case a selector returns no entities) print something if the command syntax was valid so people are not confused when a command they run doesn't return anything in chat.

Easiest way to reproduce is with /entitydata @e.

Fixed in some 1.13 snapshot.

marcono1234

(Unassigned)

Confirmed

command, error-message, execute, feedback, selector, stats, success, syntax

Minecraft 14w30c, Minecraft 14w31a, Minecraft 1.8-pre2, Minecraft 1.8-pre3, Minecraft 1.8, ..., Minecraft 16w40a, Minecraft 1.11, Minecraft 1.11.2, Minecraft 17w06a, Minecraft 1.12.2

Minecraft 18w02a

Retrieved