diff --git a/start.sh b/start.sh index 518bdda84..7b4c8199a 100755 --- a/start.sh +++ b/start.sh @@ -53,9 +53,13 @@ while [ "$LOOPS" -eq 0 ] || [ "$DO_LOOP" == "yes" ]; do else exec "$PHP_BINARY" "$POCKETMINE_FILE" $@ fi - ((LOOPS++)) + if [ "$DO_LOOP" == "yes" ]; then + if [ ${LOOPS} -gt 0 ]; then + echo "Restarted $LOOPS times" + fi + echo "To escape the loop, press CTRL+C now. Otherwise, wait 5 seconds for the server to restart." + echo "" + sleep 5 + ((LOOPS++)) + fi done - -if [ ${LOOPS} -gt 1 ]; then - echo "Restarted $LOOPS times" -fi