-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathboot.sh
executable file
·36 lines (32 loc) · 1.04 KB
/
boot.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
#!/bin/bash
export SERVER_HOME="/home/arcadi4/server-runtime"
export SURVIVAL_HOME="main"
export CREATIVE_HOME="creative"
export MIRROR_ONE_HOME=$SURVIVAL_HOME/"mirror1"
export MIRROR_TWO_HOME=$SURVIVAL_HOME/"mirror2"
export BITCRAFT_HOME="bitcraft"
export WATERFALL_HOME="waterfall"
if [ "$1" == "cb" ]; then
# echo "Starting ChatBridge Server..."
echo "This is temporarily disabled."
exit 1
elif [ "$1" == "creative" -o "$1" == "c" ]; then
echo "Starting Creative Server..."
pushd $SERVER_HOME/$CREATIVE_HOME
elif [ "$1" == "waterfall" -o "$1" == "proxy" -o "$1" == "px" -o "$1" == "wf" ]; then
echo "Starting Proxy Server..."
pushd $SERVER_HOME/$WATERFALL_HOME
elif [ -z "$1" -o "$1" == "main" -o "$1" == "s" ]; then
echo "Starting Main Server..."
pushd $SERVER_HOME/$SURVIVAL_HOME
elif [ "$1" == "bitcraft" -o "$1" == "bit" ]; then
echo "Starting bitcraft..."
java -Xms4G -Xmx16G -jar $SERVER_HOME/$BITCRAFT_HOME/server.jar nogui
exit 0
else
echo "Wrong parameters."
exit 1
fi
mcdreforged
popd
exit 0