|
@@ -126,7 +126,7 @@ print_centered "⠀⡜⣀⢀⣶⣀⣰⠆⠀⢀⡏⠀⠀⣿⠀⠀⣸⣄⠤⠄⢸
|
|
|
print_centered "⢰⠀⠀⢸⣿⣦⠈⠀⠀⢼⠁⠀⢰⡇⠀⠀⣿⣿⠀⠀⢼⠀⡄⠀⠀⠀⠀⣿⠀⠀⠀⠀⠀⢸⡇⠂⠀⣿⠀⠀⢸⡆⠀⢘⡧⠀⠀⣿⠀⠀⢸⠛⠃⠘⣿⣿⡇⠀⠀⡆"
|
|
|
print_centered "⠀⠑⢤⣀⣙⡿⠉⠱⣄⣠⣷⣄⣀⣹⣄⣀⣘⡏⢆⣀⣘⣧⣀⣀⣀⣀⣀⣿⣀⣀⣀⣀⣀⣸⣇⣀⣰⣏⣀⣠⣿⣀⣀⣾⣁⣀⣴⣋⣀⡠⠃⠀⠀⠀⢿⣋⣀⡤⠋⠀"
|
|
|
print_centered "$(tput sgr0)"
|
|
|
-print_centered "Minecraft Ubuntu Server Builder/install v2.1"
|
|
|
+print_centered "Minecraft Ubuntu Server Builder/install v2.2"
|
|
|
print_centered "$(tput sgr0)"
|
|
|
sleep 2
|
|
|
|
|
@@ -237,4 +237,78 @@ sudo sudo update-rc.d minecraft.service defaults
|
|
|
|
|
|
backup_tool
|
|
|
recovery
|
|
|
+
|
|
|
+function server_config {
|
|
|
echo -e "\nDone"
|
|
|
+cat <<'EOF'>> /tmp/sp
|
|
|
+#Minecraft server properties
|
|
|
+#Sat Dec 30 04:15:00 CET 2023
|
|
|
+allow-flight=true
|
|
|
+allow-nether=true
|
|
|
+broadcast-console-to-ops=true
|
|
|
+broadcast-rcon-to-ops=true
|
|
|
+debug=false
|
|
|
+difficulty=easy
|
|
|
+enable-command-block=true
|
|
|
+enable-jmx-monitoring=false
|
|
|
+enable-query=false
|
|
|
+enable-rcon=true
|
|
|
+enable-status=true
|
|
|
+enforce-secure-profile=true
|
|
|
+enforce-whitelist=false
|
|
|
+entity-broadcast-range-percentage=100
|
|
|
+force-gamemode=true
|
|
|
+function-permission-level=2
|
|
|
+gamemode=creative
|
|
|
+generate-structures=true
|
|
|
+generator-settings={}
|
|
|
+grow-trees=true
|
|
|
+hardcore=false
|
|
|
+hide-online-players=false
|
|
|
+initial-disabled-packs=
|
|
|
+initial-enabled-packs=vanilla
|
|
|
+level-name=world
|
|
|
+level-seed=
|
|
|
+level-type=default
|
|
|
+log-ips=true
|
|
|
+max-build-height=256
|
|
|
+max-chained-neighbor-updates=1000000
|
|
|
+max-players=20
|
|
|
+max-tick-time=120000
|
|
|
+max-world-size=29999984
|
|
|
+motd=§e§l§m--§6§8§l[§r §A§lTristan's Field §8§l]§e§l§m--§8§l[ §6serveur vZZZZZZZ \!§8§l ]§e§l§m--
|
|
|
+network-compression-threshold=512
|
|
|
+online-mode=true
|
|
|
+op-permission-level=1
|
|
|
+player-idle-timeout=0
|
|
|
+prevent-proxy-connections=false
|
|
|
+previews-chat=false
|
|
|
+pvp=true
|
|
|
+query.port=25565
|
|
|
+rate-limit=0
|
|
|
+rcon.password=Paypoo
|
|
|
+rcon.port=25575
|
|
|
+require-resource-pack=false
|
|
|
+resource-pack=
|
|
|
+resource-pack-prompt=
|
|
|
+resource-pack-sha1=
|
|
|
+server-ip=
|
|
|
+server-port=25565
|
|
|
+simulation-distance=10
|
|
|
+snooper-enabled=false
|
|
|
+spawn-animals=true
|
|
|
+spawn-monsters=true
|
|
|
+spawn-npcs=true
|
|
|
+spawn-protection=0
|
|
|
+sync-chunk-writes=true
|
|
|
+text-filtering-config=
|
|
|
+use-native-transport=true
|
|
|
+view-distance=10
|
|
|
+white-list=false
|
|
|
+EOF
|
|
|
+sed -i "s/ZZZZZZZ/$short_v/g" /tmp/sp
|
|
|
+cp /tmp/sp /home/wareck/Minecraft/server.properties
|
|
|
+}
|
|
|
+
|
|
|
+server_config
|
|
|
+echo "Done"
|