How to Change Gamemode and Difficulty
Minecraft2 min readUpdated Aug 29, 2026
Gamemode decides whether players survive or build freely, and difficulty decides how hard the world hits back. Both have a server wide default and a per player override, and knowing which one you are setting saves a lot of confusion.
Set the Server Defaults
- Log in to your game panel and click your Minecraft server.
- Open Files and edit
server.propertiesin the root folder. gamemode=survivalis what new players start in. The options aresurvival,creative,adventureandspectator.difficulty=easysets the world difficulty. The options arepeaceful,easy,normalandhard.hardcore=falseis worth leaving alone unless you mean it. With hardcore on, death is permanent and difficulty is locked to hard.- Save the file, then go to Console and press Restart.
Change It Live Instead
If you are an operator you can change both from in game without a restart.
- Press T for chat and run
/gamemode creativeto change your own mode, or/gamemode survival PlayerNamefor someone else. - Run
/difficulty hardto change the world difficulty for everyone. - These are live changes. The values in
server.propertiesare what the server falls back to on the next start.
Make the Default Stick
- By default a player keeps whatever gamemode they last had, so someone put into creative stays there.
- Setting
force-gamemode=trueinserver.propertiesputs every player back into the default gamemode each time they join. - That is what you want on a survival server where an operator occasionally switches to creative to build something.
Good to Know
- Peaceful removes hostile mobs entirely. It also stops players losing hunger. If your players say nothing is spawning, check the difficulty before looking for anything else.
- Difficulty is not the same as PvP. Difficulty governs mobs and hunger. Whether players can hurt each other is separate. See enabling and disabling PvP.
- Hardcore cannot be undone for a dead player. Once someone dies on a hardcore world they are locked to spectator. Do not switch it on as an experiment.
Finished
Your server plays the way you want it to. For everything else in
server.properties, and for the settings that need a fresh world, see how to start a fresh world.
Did this solve your problem?
Still stuck?
Our support team actually knows the games we host. Open a ticket and we will figure it out together.
Open a ticket