mirror of
https://github.com/TotalFreedomMC/TF-Scripts.git
synced 2024-12-23 00:15:10 +00:00
53b0fa94df
Just need to hook the MySQL up and then the bare minimum reset works, next step then will be to unzip maps and all that shite.
20 lines
563 B
Bash
20 lines
563 B
Bash
#!
|
|
|
|
#Pull in the .env file for variables.
|
|
source .env.sh
|
|
|
|
if test -f "$RESET_FILE";
|
|
then
|
|
echo "CRITICAL ERORR - Server is currently re-setting. Please wait for this action to complete."
|
|
exit 1
|
|
else
|
|
if screen -list | grep -q "$SCREEN_NAME";
|
|
then
|
|
echo "ERROR - There is an instance of the server already running. Make sure it is killed first and try again"
|
|
exit 1
|
|
else
|
|
screen -dmS $SCREEN_NAME java -Xms$JVM_HEAP -Xmx$JVM_HEAP $JVM_LAUNCH_OPTS -jar $PAPER_JAR_NAME
|
|
echo "Server Started"
|
|
exit 0
|
|
fi
|
|
fi
|