mirror of
https://github.com/itzg/docker-minecraft-server.git
synced 2026-03-21 05:55:57 +00:00
Provide option to escape unicode in server.properties
This commit is contained in:
@@ -110,11 +110,13 @@ function customizeServerProps {
|
||||
|
||||
setPropertiesArgs=(
|
||||
--definitions "/image/property-definitions.json"
|
||||
--escape-unicode="${SERVER_PROPERTIES_ESCAPE_UNICODE:-false}"
|
||||
)
|
||||
if [[ -v CUSTOM_SERVER_PROPERTIES ]]; then
|
||||
setPropertiesArgs+=(--custom-properties "$CUSTOM_SERVER_PROPERTIES")
|
||||
fi
|
||||
|
||||
handleDebugMode
|
||||
if ! mc-image-helper set-properties "${setPropertiesArgs[@]}" "$SERVER_PROPERTIES"; then
|
||||
log "ERROR: failed to update server.properties"
|
||||
exit 1
|
||||
|
||||
Reference in New Issue
Block a user