Is it possible to change the difficulty of a Minecraft server while it is running?
No, it's not possible. You have to edit the server.properties file and restart the server.
It's possible as of version 1.4.2 (12w32a) with the
/difficulty x server command, where
x is a number from 0 to 3:
0 = peaceful 1 = easy 2 = normal 3 = hard
The setting will be saved across restarts.
Yes you can change difficulty 'adhoc' using the
However this does nothing to the server.properties file and upon server restart, the difficulty is reset to that of the properties file.
On bukkit servers you can say
You can try the
Alternatively, you can edit the server.properties file.
Go to Finder.
Find the server.properties file.
Put in any number from
Then I save it, close the window, and restart the server.
Of course it is, /difficulty peaceful, if you are not opped open the command console for your server and type the same thing.
I use the command /difficulty _____ (peaceful, easy, normal, hard) all the time on my server. It works instantly.