Skip to content
Minecraft

How to Change Gamemode & Difficulty on a Minecraft Server

5 min read Updated 17 July 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.

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.

Your rules, your world

Set gamemode, difficulty and every other rule from an easy panel — Minecraft hosting, protected and online in minutes.

Minecraft hosting
FAQ

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.

Further reading

Go deeper on this

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

Knowledge base

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.

Payments Secure checkout with cards, banking apps and digital wallets.

Choose the payment flow that fits your stack and region without leaving the platform.

Pay by Zen Visa Mastercard Paysafecard PaysafeCash Skrill Trustly Bancontact UnionPay iDeal WebMoney