-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathentrypoint.sh
More file actions
executable file
·60 lines (54 loc) · 1.5 KB
/
entrypoint.sh
File metadata and controls
executable file
·60 lines (54 loc) · 1.5 KB
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
#!/bin/bash
# aether v1
# A multiegg for hosting companies to host Minecraft servers. it's also not shit so you should use it
# Licensed under the MIT License
# Forked from Primectyl by divyamboii, licensed under the MIT License
ARCH=$([[ "$(uname -m)" == "x86_64" ]] && printf "amd64" || printf "arm64")
# Get script directory
SCRIPT_DIR="$(cd "$(dirname "$0")" && pwd)"
# Source all functions
for file in $(find "$SCRIPT_DIR/functions" -name "*.sh" -type f | sort); do
source "$file"
done
####################################
# Main Script #
####################################
function main {
check_config
while true; do
clear
display
mkdir -p system
if [[ "$ENABLE_RULES" == "1" ]]; then
rules
fi
echo -e "\e[36m🎮 Select the server type:\e[0m"
echo -e "\e[32m1\e[0m) Minecraft: Java Edition\e[0m"
echo -e "\e[32m2\e[0m) Minecraft: Bedrock Edition\e[0m"
echo -e "\e[32m3\e[0m) Minecraft Proxies\e[0m"
echo -e "\e[31m4\e[0m) Exit"
read -p "$(echo -e '\e[33mYour choice:\e[0m') " type
case $type in
1)
minecraft_menu
;;
2)
bedrock_menu
;;
3)
proxy_menu
;;
4)
exit 0
;;
stop)
exit 0
;;
*)
printout error "Invalid choice. Please try again."
sleep 2
;;
esac
done
}
main