#!/bin/bashif [ -e world.lock ]; then echo Waiting for world backup... while [ -e world.lock ]; do sleep 1; donefiecho Starting snapshot...../runas /usr/bin/java snapshot -server -jar versions/minecraft_server.1.8.1-pre1.jar nogui 2>&1if [ ! -e world.lock ]; then echo Restarting in 5 seconds, press ctrl+C to abort, or any key to restart now. read -n 1 -t 5ficp start.sh~ start.shexec $0