How do I Enable/Disable Peaceful Mode?
First, make sure you are an admin on your server. Run this command from the console with your user name to set you as a server administrator. If you wish for a more in depth explaination, check our admin guide.
/promote Your User Name
Next check to see what the current setting is for the peaceful mode.
/c game.player.print(game.player.surface.peaceful_mode)
To enable or disable peaceful mode enter true or false respectively into the following command.
/c game.player.surface.peaceful_mode = false
If you enabled peaceful mode we highly recommend killing all spawned biters with this command.
/c game.forces["enemy"].kill_all_units()