Hi! These are the steps I've followed to configure the difficulty on a server running Paper 1.19.4 (build 530).
Reading the NBT content of
Even if
- Create a new, empty directory for the server.
- Download Paper and accept the EULA.
- Start the server and wait for it to be ready.
- The
/difficulty
command says "The difficulty is Easy". - Gracefully stop the server.
- Check the
server.properties
file, wheredifficulty
is set toeasy
. - Change that to
peaceful
before starting the server again. - The
/difficulty
command still returns "The difficulty is Easy".
Reading the NBT content of
world/level.dat
I can also see Difficulty
hasn't been updated. It's set to 1
, which maps to easy.Even if
/difficulty peaceful
works, I find this behaviour counter-intuitive. Is this how difficulty is supposed to work? Should we understand this property as something that is used only when new worlds are generated?- Version Output
- git-Paper-530 (MC: 1.19.4) (Implementing API version 1.19.4-R0.1-SNAPSHOT) (Git: 9daa019)