forked from lordofwizard/mcserver
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinstall
More file actions
executable file
·41 lines (31 loc) · 788 Bytes
/
install
File metadata and controls
executable file
·41 lines (31 loc) · 788 Bytes
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
37
38
39
40
41
#!/bin/bash
set -e
mkdir -p bin
chmod +x *
export MAIN_DIR="$PWD"
echo "Which Server do you want to install?"
echo "Type [1] Java Server"
echo "Type [2] Bedrock Server"
read -rp "> " choiceForServer
# -----------------------------
# Server choice
# -----------------------------
if [[ -z "$choiceForServer" ]]; then
echo "> Invalid response"
./install
elif [[ "$choiceForServer" == "1" ]]; then
echo "> Running Java installation..."
./installJava
elif [[ "$choiceForServer" == "2" ]]; then
echo "> Running Bedrock installation..."
./installBedrock
else
echo "> Invalid response"
./install
fi
# -----------------------------
# AFK
# -----------------------------
echo "> Installing AFK monitor..."
python3 -m pip install --user bpytop
echo "> Install finished."