mojira.dev
MC-307690

/difficulty error message doesn't use difficulty's translated name

The bug

The /difficulty command uses your language’s names for the difficulty when it queries the difficulty or successfully changes it. However, when it fails to change it (because the difficulty was already the provided one), the untranslated ID of the difficulty appears instead.

How to reproduce

  1. Set your language to spanish

  2. Run /difficulty peaceful
    -> ✔ The message is translated

  3. Run /difficulty
    -> ✔ The message is translated

  4. Run /difficulty peaceful again
    -> ❌ The message uses the untranslated word “peaceful”

image-20260422-042856.png

Expected result

All messages should use the localized name

Observed result

Error message uses the internal name

Attachments

Comments 2

The essence of this error is easier for Russian-speaking people to understand, because the Russian language is also affected by this bug. Therefore, who is Russian (not English-speaking!) here are the steps to reproduce this bug:

Russian Russian is a language other than Russian, then change it to Russian.

  • Use it /difficulty peaceful

  • Use /difficulty

  • Use /difficulty again.

  • The error message uses the word «Peaceful», which has not been translated into Russian.

tryashtar

(Unassigned)

Confirmed

(Unassigned)

26.1.2, 26.2 Snapshot 4

Retrieved