encode42 / flags.sh

A simple script generator to start your Minecraft servers with optimal flags.
https://flags.sh
MIT License
150 stars 21 forks source link

AutoRestart timer #3

Closed playgamesgo closed 2 years ago

playgamesgo commented 2 years ago

Change autorestart from echo Server restarting... echo Press CTRL + C to stop. done to for i in 3 2 1; do printf 'Server restarting in %s... (press CTRL-C to exit)\n' "${i}" sleep 1 done done This is useful not to spam Ctrl+C to shut down the server, but to have a time of 3 seconds to do it

encode42 commented 2 years ago

This isn't needed IMO. You don't have to spam CTRL+C, just press it when it says the server is restarting.