Update launch.sh - MOTD

This commit is contained in:
W3LFARe 2025-01-09 23:29:34 -05:00 committed by GitHub
parent a40fa0f4ec
commit 1a9e28191f

View file

@ -36,7 +36,7 @@ if [[ -n "$JVM_OPTS" ]]; then
for j in ${JVM_OPTS}; do sed -i '$a\'$j'' user_jvm_args.txt; done
fi
if [[ -n "$MOTD" ]]; then
sed -i "s/motd\s*=/ c motd=$MOTD" /data/server.properties
sed -i "s/motd=.*/motd=$MOTD" /data/server.properties
fi
if [[ -n "$ENABLE_WHITELIST" ]]; then
sed -i "s/white-list=.*/white-list=$ENABLE_WHITELIST/" /data/server.properties