/difficulty command does not work properly in non-main worlds

    • Type: Bug
    • Resolution: Fixed
    • Priority: Minor
    • None
    • Affects Version/s: None
    • None
    • Environment:

      N/A

    • This server is running CraftBukkit version 2995-Spigot-5bde311-0bad58f (MC: 1.16.5) (Implementing API version 1.16.5-R0.1-SNAPSHOT)
    • N/A
    • Yes

      The difficulty command is showing the wrong current difficulty when executed with no parameters, and then refuses to allow a change because spigot thinks the new level matches the existing level (it does not).

       

      /difficulty
      "The difficulty is hard"
      /difficulty easy
      "The difficulty did not change; it is already set to easy"
      /difficulty
      "The difficulty is hard"
      /difficulty hard
      "The difficulty has been set to hard"

       

      There are no plugins installed, and I'm unable to reproduce the issue in Vanilla.

       

      Eventually it will cooperate and work as expected if you keep spamming the commands to try and toggle the setting:

            Assignee:
            Doc
            Reporter:
            Zizzy Zizzy
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: