How to Change Gamemode & Difficulty in Minecraft

  • 5 min read
  • Updated 7 October 2026
  • ESAGAMES Team

Whether you want a creative build server or a hardcore survival world, gamemode and difficulty are two quick settings. Here is how to change both — for one player or the whole server — with commands and in server.properties.

Quick answer

As an operator, change gamemode with /gamemode creative (or survival, adventure, spectator), adding a player name to change someone else, and difficulty with /difficulty hard. To set the defaults for the whole server, edit gamemode= and difficulty= in server.properties and restart.

Change gamemode (survival, creative, adventure, spectator)

As an operator, use the /gamemode command:

/gamemode survival
/gamemode creative
/gamemode adventure YourFriend

Add a player name to change just that person; leave it off to change yourself. Short forms like /gamemode 1 (creative) also work.

Set the default gamemode for everyone

The gamemode new players start in is set by gamemode in server.properties. Set force-gamemode=true to snap returning players back to it every time they join.

Change difficulty (peaceful, easy, normal, hard)

/difficulty peaceful
/difficulty hard

This applies to the whole server immediately. The startup default is the difficulty line in server.properties. Note that hardcore=true locks difficulty to hard and makes death permanent.

Why is my difficulty not sticking?

  • hardcore=true forces the world to hard difficulty.
  • Peaceful removes hostile mobs and slowly heals players — that is expected, not a bug.
  • You changed server.properties but did not restart.
  • A datapack or plugin is overriding it.

In server.properties

gamemode=survival
force-gamemode=false
difficulty=normal
hardcore=false
Commands change things right now; server.properties sets the defaults for the next start. Use the command to test, then bake it into properties to make it permanent.

Defaults like difficulty and gamemode live in server.properties. With Minecraft server hosting from ESAGAMES, you can edit that file from the web panel and restart in one click.

Frequently asked questions

How do I change gamemode on a Minecraft server?

As an operator, run /gamemode creative (or survival, adventure, spectator). Add a player name to change just them. To set the default for everyone, edit gamemode= in server.properties and restart.

How do I change the difficulty on my server?

Run /difficulty hard (or peaceful, easy, normal) from the console or as an op — it applies to the whole server instantly. The startup default is the difficulty line in server.properties.

Why does my difficulty keep resetting to hard?

Almost certainly hardcore=true in server.properties, which locks the world to hard difficulty with permanent death. Set hardcore=false and restart to change difficulty freely.

What is force-gamemode in Minecraft?

A server.properties option that, when true, resets players to the server's default gamemode every time they join — useful to stop players keeping creative between sessions.

Go deeper on this

Guides and explainers that pair with this fix — from our guides and blog.

Related articles

Skip the troubleshooting

Managed, protected hosting in Frankfurt — we handle the Linux, the network and the DDoS so you don't have to.