Uploaded image for project: 'Minecraft: Java Edition'
  1. Minecraft: Java Edition
  2. MC-276424

/difficulty does not persist after server restart

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • None
    • 1.21.1
    • None
    • Windows 10, Java 21.0.3, but also observed on Linux Mint
    • Unconfirmed

      What I expected to happen was...:

      Running '/difficulty (difficulty)' and then restarting the server sometime after will remain on the chosen difficulty.

      What actually happened was...:

      After the server is restarted, the difficulty returns to what it was previously. This appears to be because /difficulty does not update the 'server.properties' file.

      Steps to Reproduce:
      1. Start the server with any difficulty. For example, easy.
      2. Run /difficulty with no argument. This will return the current difficulty (easy in this case).
      3. Run /difficulty with any other difficulty supplied. For example, normal.
      4. Run /difficulty with no argument. This will return the newly selected difficulty (normal in this case).
      5. Restart the server and then run /difficulty with no argument again. This will return the previous difficulty (easy in this case).

            Unassigned Unassigned
            pancakegirl226 pancakegirl226
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: