To change difficulty Minecraft server settings permanently, stop the server, set the difficulty line in server.properties to peaceful, easy, normal or hard, and start it again. For a quick change while people are playing, an operator can run /difficulty hard, but on a dedicated server that only lasts until the next restart.
That last detail is why so many admins think their change “didn’t save”. Below you have both methods, how they interact, what each level does, and what to check when the difficulty keeps going back.
Two ways to change the difficulty
| Method | Where | Takes effect | Survives a restart? |
|---|---|---|---|
difficulty= line | server.properties | Next start | Yes |
/difficulty <level> | Chat (as operator) or console | Immediately | No, the file wins on restart |
The Minecraft Wiki is clear about it: on a multiplayer server the difficulty set with the command lasts until the server restarts, and then it is read again from server.properties. Use the command to test, and the file to make it stick.
Change difficulty Minecraft server-wide in server.properties
- Stop the server with
stopin the console, so it does not overwrite your edit when it shuts down. - Open
server.propertiesin the server’s main folder. - Find the
difficultyline and write one of the four names. The default iseasy. - Save the file without changing anything else on that line (no spaces, no capitals).
- Start the server and check the result with
difficultyin the console. With no argument, it prints the current level.
difficulty=hard
hardcore=false
Old guides use numbers (0 to 3). Current versions still accept them and convert them to the names, but writing the name avoids mistakes: peaceful = 0, easy = 1, normal = 2, hard = 3.
The /difficulty command
The command needs permission level 2, which every operator has. If you are not OP yet, see how to OP yourself on a Minecraft server. In game you type it with a slash; in the server console, without it.
/difficulty (shows the current difficulty)
/difficulty peaceful
/difficulty easy
/difficulty normal
/difficulty hard
The change applies to everyone at once, across the Overworld, the Nether and the End. It is handy for a quick test, or to drop to peaceful for a few minutes while friends finish a build, as long as you remember that a restart brings back whatever server.properties says.
What each difficulty level changes
| Level | Hostile mobs | Hunger | Good for |
|---|---|---|---|
peaceful | Most hostile mobs do not spawn | Hunger does not drop and health regenerates | Building servers, young kids |
easy | Spawn, deal less damage | Starving stops at 5 hearts | Casual groups, new players |
normal | Standard damage | Starving stops at half a heart | Most survival SMPs |
hard | More damage; zombies can break wooden doors | Starving can kill you | Experienced players, challenge runs |
On hard, villagers killed by zombies always become zombie villagers, which matters if your players run a village trading hall. If you run a server for kids, peaceful or easy plus a few other settings make a big difference; our guide to a Minecraft server for kids covers them.
Difficulty is not the only thing that decides how punishing a death is. Many groups play on hard but turn on keep inventory so a creeper does not wipe hours of loot; see Minecraft server keep inventory.
Hardcore: the one difficulty you cannot change later
Hardcore is not a fifth value of difficulty. It is a separate line, hardcore=true, and it only applies to worlds created after you set it. A hardcore world is locked to hard, and when you die you can only spectate. On a hardcore world the /difficulty command does nothing, even if it reports success.
So you cannot switch an existing survival world to hardcore by editing one line: you need a new world. Our hardcore Minecraft server guide has the full setup, and how to reset a Minecraft server world shows how to start that new world while keeping the old one in a backup.
Difficulty keeps going back? Check this
- You only used the command. After a restart the server reads
server.propertiesagain. Change the file too. - You edited the file while the server was running. Stop it first, edit, then start it.
- A typo in the value.
Hard,hardwith a space, ordifficult=hardwill not work. Copy the line from above. - You edited the wrong file. Some people upload a
server.propertiesfrom their PC into a subfolder. The one that counts is next to the server jar. - The world is hardcore. It stays on
hardno matter what you set. - It is a Bedrock server. The idea is the same but the details differ; see Bedrock server difficulty.
Change the difficulty on TheGameHosting
- Open your server in the panel and type
stopin Console. - Go to Files → server.properties, set
difficulty=normal(or the level you want) and save. - Start the server and type
difficultyin Console to confirm the level. - For a temporary change, type
difficulty peacefulin Console without stopping anything.
You never need to open ports or keep your PC on: the console and the file editor are in the browser, and if a co-admin handles the settings you can give them panel access in Users instead of sharing your account. On a Minecraft server from TheGameHosting your world runs 24/7 on AMD 9950X/7950X3D with DDR5 and NVMe in Dallas or Amsterdam, with DDoS protection. Compare plans on the plans and pricing page and use code FULL2026 for 15% off for life.
FAQ
How do I change the difficulty on my Minecraft server permanently?
Stop the server, set difficulty= in server.properties to peaceful, easy, normal or hard, and start it again. The /difficulty command alone is reset on the next restart.
Why does my Minecraft server difficulty keep resetting to easy?
Because easy is the default in server.properties, and the server reads that file every time it starts. Change the difficulty line in the file, not just the command.
Can I change a Minecraft server from hardcore to normal?
Not by editing difficulty: a hardcore world stays on hard and the command has no effect there. Set hardcore=false and generate a new world, keeping the old one in a backup.
Who can use /difficulty on a server?
Operators, since it needs permission level 2. It also works from the server console, typed without the slash.
Hosting for these games
Minecraft Java hostingPaper, Purpur, Fabric, Forge and more
Minecraft Bedrock hostingPhones, consoles and Windows
Written by TheGameHosting Team, the people who run our servers in Dallas and Amsterdam and answer your tickets.
All posts
TheGameHosting Team