#!/bin/sh
/opt/minecraft/mcrcon -s -c -H 127.0.0.1 -p lalala "say Server Restarting in 5 minutes"
sleep 240
/opt/minecraft/mcrcon -s -c -H 127.0.0.1 -p lalala "say Server Restarting in 1 minute"
sleep 60
/opt/minecraft/mcrcon -s -c -H 127.0.0.1 -p lalala stop
sleep 60
/opt/minecraft/serverstart.sh