mojira.dev
MC-124722

/team join and /team leave tab-complete all entries from scoreboard including fake players

Relates to MC-124056

The bug

/team join and /team leave tab-complete all entries currently stored in the scoreboard including fake players whose names start with #.

/team leave should only tab-complete the names of players / entities which are in the team (currently not the case unless the scoreboard tracks them as well).
(?) Maybe /team join should tab-complete the names of currently online players.

How to reproduce

  1. Create a scoreboard objective and store a value for a fake player

    /scoreboard objectives add test dummy
    /scoreboard players set #fakePlayer test 1
  2. Type the following

    /team leave

    → ❌ It suggests #fakePlayer

Comments 5

{{/team leave}} doesn't even have an argument for the team – it just removes things from whatever team they may be on. And fake players are allowed to be on teams, so I don't really see the bug unless I'm misunderstanding something.

I am unable to reproduce this issue in 20w51a.

I apologize, I didn't realize.

Blocked by feature request.

marcono1234

(Unassigned)

Confirmed

(Unassigned)

/team, fake-players, scoreboard, tab-completion

Minecraft 18w05a

Retrieved