mirror of
https://github.com/TotalFreedomMC/TF-Scripts.git
synced 2024-12-22 16:05:03 +00:00
4e71b18351
This is as they currently stand, I know there are better ways to have set these up but they've worked okay for now.
24 lines
No EOL
496 B
Bash
24 lines
No EOL
496 B
Bash
#!
|
|
if screen -list | grep -q "TotalFreedom";
|
|
then
|
|
screen -X -S "TotalFreedom" stuff "stop^M"
|
|
sleep 5
|
|
else
|
|
echo "The server is not running... Try starting it <3"
|
|
fi
|
|
|
|
if screen -list | grep -q "TotalFreedom";
|
|
then
|
|
screen -X -S "TotalFreedom" stuff "^C"
|
|
sleep 5
|
|
fi
|
|
|
|
if screen -list | grep -q "TotalFreedom";
|
|
then
|
|
screen -X -S "TotalFreedom" stuff "^C^C^C^C^C^C^C^C"
|
|
fi
|
|
|
|
if screen -list | grep -q "TotalFreedom";
|
|
then
|
|
echo "Graceful Shutdown Failed. Please run tf!kill"
|
|
fi |