mojira.dev
MC-313396

`/scoreboard players reset` reports success for targets that have no score to reset

The Bug:

/scoreboard players reset reports success for targets that have no score to reset.

The /tag remove and /scoreboard players enable commands only count the targets that were changed and fail when nothing was changed. However, the /scoreboard players reset command still succeeds and counts every target, even those that have no score to reset, therefore introducing an inconsistency.

Steps to Reproduce:

  1. Create a scoreboard objective by using the command provided below.

    /scoreboard objectives add test dummy
  2. Without setting a score, reset your score by using the command provided below.

    /scoreboard players reset @s test
  3. Observe if the "Reset [test] for <player>" message is shown in chat.

Observed Behavior:

The command succeeds and shows "Reset [test] for <player>" despite there being no score to reset.

Expected Behavior:

Resetting a score that doesn't exist would fail.

Attachments

Comments 1

Avoma

(Unassigned)

Unconfirmed

Commands

26.3, 26.4 Snapshot 10

Retrieved