'/scoreboard players operation' does not tab complete fake players for second name argument and syntax help calls it selector
The bug
The /scoreboard players operation command tab completes fake players for the first but not the second name argument.
Additionally the syntax help calls it "selector" instead of "name":
/scoreboard players operation <targetName> <targetObjective> <operation> <selector> <objective>
How to reproduce
- Add an objective
/scoreboard objectives add test dummy
- Set for the fake player #fakePlayer a score
/scoreboard players set #fakePlayer test 1
- Enter the following command and try to tab complete the fake player for both name arguments
/scoreboard players operation
Code analysis
Based on 1.11.2 decompiled using MCP 9.35 rc1
The method net.minecraft.command.server.CommandScoreboard.getTabCompletions(MinecraftServer, ICommandSender, String[], BlockPos) uses only online players for the second name argument.
Created Issue:
scoreboard players operation does not tab complete fake players for second name argument and syntax help calls it selector
The bug
The /scoreboard players operation command tab completes fake players for the first but not the second name argument.
Additionally the syntax help calls it "selector" instead of "name":/scoreboard players operation <targetName> <targetObjective> <operation> <selector> <objective>How to reproduce
- Add an objective
/scoreboard objectives add test dummy- Set for the fake player #fakePlayer a score
/scoreboard players set #fakePlayer test 1- Enter the following command and try to tab complete the fake player for both name arguments
/scoreboard players operation
The bug
The /scoreboard players operation command tab completes fake players for the first but not the second name argument.
Additionally the syntax help calls it "selector" instead of "name":/scoreboard players operation <targetName> <targetObjective> <operation> <selector> <objective>How to reproduce
- Add an objective
/scoreboard objectives add test dummy- Set for the fake player #fakePlayer a score
/scoreboard players set #fakePlayer test 1- Enter the following command and try to tab complete the fake player for both name arguments
/scoreboard players operationCode analysis
Based on 1.11.2 decompiled using MCP 9.35 rc1
The method net.minecraft.command.server.CommandScoreboard.getTabCompletions(MinecraftServer, ICommandSender, String[], BlockPos) uses only online players for the second name argument.
I don't get fake players as autocomplete options in any scoreboard command
Cannot reproduce in 20w48a either. It looks like it now only suggests online player names (see net.minecraft.commands.arguments.ScoreHolderArgument.SUGGEST_SCORE_HOLDERS).