Enhance inject_options function to copy server.properties and server icon to run directory

This commit is contained in:
Chipperfluff 2025-12-22 20:01:37 +01:00
parent 758cce1623
commit fd94a17dbe

10
chipper
View File

@ -67,6 +67,16 @@ inject_options() {
if [[ -f "./config/servers.dat" ]]; then
cp "./config/servers.dat" "$dir/servers.dat"
fi
# server.properties
if [[ -f "./config/server.properties" ]]; then
cp "./config/server.properties" "$dir/server.properties"
fi
# server icon
if [[ -f "./config/server-icon.png" ]]; then
cp "./config/server-icon.png" "$dir/server-icon.png"
fi
}
ensure_server_files() {