-
Notifications
You must be signed in to change notification settings - Fork 155
/
installBedrock
executable file
·101 lines (80 loc) · 2.31 KB
/
installBedrock
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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
#!/bin/bash
export MAIN_DIR=$PWD
#Installing all the dependencise
sudo apt install -qq screen neofetch wget unzip -y
echo "export PATH=$PATH:/some/new/path" > ~/.profile
echo "> Dependencies Installtion Completed!"
#Downloading ngrok && Downloading Minecraft Server
mkdir server
echo ""
echo "-- Pick the following Server type: --"
echo "Type [1] Create Vanilla Server"
echo "Type [2] Create GoMint Server"
echo "Type [3] Create Nukkit Server (Extra Steps needed)"
echo "Type [4] Create PocketmineMP Server"
choiceForServer=1
read choiceForServer
# 0
if [[ -z $choiceForServer ]]; then
echo "> By Default you selected [1]"
echo "> Installing Vanilla Server..."
cd BedrockInstallScripts
chmod +x *
./VanillaInstall
# Vanilla
elif [[ $choiceForServer == 1 ]]; then
echo "> Installing Vanilla Server..."
cd BedrockInstallScripts
chmod +x *
./VanillaInstall
# GoMint
elif [[ $choiceForServer == 2 ]]; then
echo "> Installing GoMint Server..."
cd BedrockInstallScripts
chmod +x *
./GoMintInstall
# Nukkit
elif [[ $choiceForServer == 3 ]]; then
echo "> Installing Nukkit Server..."
cd BedrockInstallScripts
chmod +x *
./NukkitInstall
# Pocketmine
elif [[ $choiceForServer == 4 ]]; then
echo "> Installing PocketmineMP Server..."
cd BedrockInstallScripts
chmod +x *
./PocketmineInstall
# Otherwise
else
echo "> By Default, you selected [1]"
echo "> Installing Vanilla Server..."
cd BedrockInstallScripts
chmod +x *
./VanillaInstall
fi
# Backup install playit.gg in case if first one doesn't download
echo "> Installing Playit.gg..."
cd ..
#wget "https://playit.gg/downloads/playit-linux_64-0.4.6" -O playit
wget -q "https://playit.gg/downloads/playit-0.8.1-beta" -O playit
chmod +x playit
echo "> Playit.gg Installation Completed!"
echo ""
echo "-- Do you want to start the server now? --"
echo "Type [1] for Yes"
echo "Type [2] for No"
StartServer=2
read StartServer
if [[ -z $StartServer ]]; then
echo "> By Default, you selected 'No'."
echo "> You can start the server by do ./startserver"
elif [[ $StartServer == 1 ]]; then
./startserver
elif [[ $StartServer == 2 ]]; then
echo "You picked 'No'."
echo "> You can start the server by do ./startserver"
else
echo "> By Default, you selected 'No'."
echo "> You can start the server by do ./startserver"
fi