Is it possible to change the difficulty of a server while it is running?
Is it possible to change the difficulty of a Minecraft server while it is running?
The problem with being able to change difficulty while keeping the server up is that it requires the server to know when the server.properties file changes. That capability is largely OS dependent. Java might handle the OS dependent part (I'm no expert), but Notch likely hasn't considered it an issue with the server.
do you mean like in "whether monsters are spawned or not"? Because you can obviously change the difficulty setting to change how much damage is caused. But actually I never tested what peaceful + spawn.mobs=true does..
peaceful + spawn.mobs=true used to spawn agressive non-killable monsters (it was like that last time i tried, about 4 months ago). The problem was, while being unkillable, they could still inflict you some damage...
No, it's not possible. You have to edit the server.properties file and restart the server.
@Bryan didn't notice the 1 year time gap between answers ¬.¬ I'll be going now...
Users should note that "accepted answer" simply means this answer worked for the original poster. For the best, most up to date answer, your looking for the answer with the most up votes (generally). Regardless of the inaccuracy of this answer, now, it should not be "edited" with a copy of a valid answer, unless done so by the **original poster**. Conflicting with authors intent is a valid marker for rejecting/rolling back edits.