BuildTools 11 months ago
parent
commit
6337575977
4 changed files with 80 additions and 2 deletions
  1. 1 1
      build_cube.sh
  2. 75 1
      options/minecraft.sh
  3. 1 0
      options/tools/.gitignore
  4. 3 0
      options/tools/backup_chia.sh

+ 1 - 1
build_cube.sh

@@ -1,6 +1,6 @@
 #!/bin/bash
 set -e
-Version=18.3.4
+Version=18.3.5
 Cuda=YES
 kernel_custom=YES
 Miners=Yes

+ 75 - 1
options/minecraft.sh

@@ -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"

+ 1 - 0
options/tools/.gitignore

@@ -2,3 +2,4 @@ cndrvcups-capt_2.71-1_amd64.deb
 cndrvcups-common_3.21-1_amd64.deb 
 kernel_patch
 cmake*
+temp_arc

+ 3 - 0
options/tools/backup_chia.sh

@@ -0,0 +1,3 @@
+#!/bin/bash
+echo "Packing:"
+tar cvfJ chia.tar.xz --exclude="blockchain_v2_mainnet.sqlite" .chia .chia_keys/