[SPIGOT-6330] /difficulty command does not work properly in non-main worlds Created: 26/Jan/21  Updated: 21/Feb/22  Resolved: 21/Feb/22

Status: Resolved
Project: Spigot
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Bug Priority: Minor
Reporter: Zizzy Zizzy Assignee: Doc
Resolution: Fixed Votes: 1
Labels: None
Environment:

N/A


Issue Links:
Duplicate
is duplicated by SPIGOT-6900 Stuck difficulty in nether/end world Resolved
Version: This server is running CraftBukkit version 2995-Spigot-5bde311-0bad58f (MC: 1.16.5) (Implementing API version 1.16.5-R0.1-SNAPSHOT)
Plugin: N/A
Guidelines Read: Yes

 Description   

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:


Generated at Wed Apr 02 10:50:57 UTC 2025 using Jira 10.3.3#10030003-sha1:d220e3fefc8dfc6d47f522d3b9a20c1455e12b7b.