mcserver/instance/start.sh
2023-06-17 00:15:23 -04:00

11 lines
217 B
Bash
Executable File

#!/bin/bash
cd "$(dirname "$0")"
if ! [[ -e ./vars ]] ; then
echo 'Please create a "vars" file using "vars.example" as a template'
exit 1
fi
source ./vars
command "$JAVA" $JAVA_PARAMS -jar "$SERVER" nogui
sleep 10