How to Change the Difficulty on Your Minecraft Server
Minecraft has four difficulty levels that control how dangerous the world is, from no hostile mobs at all to door-breaking zombies and death by starvation. There are two ways to set it on your server: the /difficulty command for an instant change, and the difficulty line in server.properties to make it permanent. This guide covers both.
The Four Difficulty Levels
- Peaceful: hostile mobs never spawn, your health regenerates quickly, and the hunger bar never drains.
- Easy: hostile mobs spawn but deal reduced damage, and hunger can take you down to 5 hearts.
- Normal: the default setting, with standard mob damage and hunger that can drop you to half a heart.
- Hard: mobs hit hardest, starvation can kill you, and zombies can break down wooden doors and call for reinforcements.
Prerequisites
- For the command method: operator (OP) status on the server. See our guide on how to OP yourself.
- For the server.properties method: access to your files through the panel file manager or FTP.
Method 1: The /difficulty Command (Instant, No Restart)
This is the fastest way and takes effect the moment you run it. Join your server and type one of the following in chat:
/difficulty peaceful
/difficulty easy
/difficulty normal
/difficulty hard
The change applies right away with no restart needed. To see the current difficulty, run the command with no value:
/difficulty
Method 2: The server.properties File (Permanent)
The command is great for a quick change, but the difficulty value in server.properties is what your server loads on every startup. Set it here to make your choice stick.
- Stop your server from the panel.
- Open
server.propertiesin the file manager (or download it over FTP). - Find the line
difficulty=easyand change the value topeaceful,easy,normal, orhard. - Save the file and start the server again.
If you would rather not edit the file by hand, our Minecraft server.properties generator builds the file for you.
Note on hardcore mode: setting hardcore=true forces the difficulty to Hard and locks it so it cannot be changed. If your difficulty will not budge, check this setting first. See how to enable hardcore mode for the full rundown.
Command or server.properties: Which Should You Use?
Use both, set to the same value. Here is why:
- The
/difficultycommand changes the difficulty for the running session instantly, but it does not edit server.properties. - On the next restart, the server re-applies the
difficultyvalue from server.properties.
So if you only use the command, a restart can quietly revert your change. Setting server.properties to match keeps the difficulty consistent across restarts.
Verify the Difficulty
- In-game, run
/difficultywith no value and the server reports the current setting. - The F3 debug screen also shows the active difficulty in the top-right info panel.
Common Issues and Solutions
- The command does nothing: confirm you have OP status and that the level name is spelled correctly (peaceful, easy, normal, hard).
- Difficulty reverts after a restart: server.properties is overriding your command. Update the file to match (Method 2).
- Switched to Peaceful but mobs are still around: existing hostile mobs despawn over a short time or when their chunks reload. Peaceful stops new ones from spawning.
- Difficulty is greyed out or locked: the world has its difficulty locked, or
hardcore=trueis set. Unlock it in the world settings or turn off hardcore.
Additional Tips
- Match your server.properties value to your command choice so a restart never surprises your players.
- Peaceful is ideal for building and creative-style servers where you want zero combat.
- For the classic survival challenge, pair Hard difficulty with keep inventory turned off. See how to enable keep inventory if you want the opposite.
Need help with your server settings? Contact our support team and we will get you sorted.
