Aktualizovat adjust.sh
All checks were successful
Build Minecraft Image / Build-Minecraft-Stats-Image (push) Successful in 44s

This commit is contained in:
Radim Lipovčan 2024-06-22 09:40:09 +02:00
parent ac68d7834d
commit 5d4cb3fc86

View File

@ -19,3 +19,6 @@ FILE_PATH="/data/server.properties"
# Create or overwrite the server.properties file with the hostname
echo "server-name=$HOSTNAME" >> "$FILE_PATH"
echo "enforce-secure-profile=false" >> "$FILE_PATH"
echo "view-distance=6" >> "$FILE_PATH"
echo "difficulty=hard" >> "$FILE_PATH"
sed -i 's/^view-distance=10/view-distance=6/; s/^difficulty=easy/difficulty=hard/' "$FILE_PATH"