diff --git a/adjust.sh b/adjust.sh index 04ebb03..32d4fda 100644 --- a/adjust.sh +++ b/adjust.sh @@ -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"