mojira.dev
MC-248632

Wrong suggestions are shown after inapplicable selector options

When an entity selector was written with an inapplicable option (e.g. type for @a/@p/@r, limit for @s), a wrong list of completions are shown afterwards.

How to reproduce:

  1. Join a world with op permission

  2. Type:

    /msg @a[type

Expected:
No suggestions should be provided, and the type should be marked as an error.

[media]

Observed:
A list of selector options are suggested.

[media]

Attachments

Comments 4

This is a feature request. /say & /msg don't have a value for type as that is used for entities.

You're missing the point, if using @p, @r or @a type= still creates suggestions, despite those selectors being player exclusive.

This is a feature request. Brigadier is not concerned with what selector type is used.

If brigadier doesn't know wich selector type is used it should sugget type but it doesn't.

Sertonix

(Unassigned)

Confirmed

Platform

Low

Commands

autocomplete, brigadier, command, target-selector

1.18.1, 1.18.2, 22w11a, 22w12a, 22w14a, ..., 1.19 Release Candidate 1, 1.19, 1.19.1 Pre-release 2, 1.19.2, 1.19.4 Pre-release 3

Retrieved