Update launch.sh

This commit is contained in:
W3LFARe 2025-01-09 23:38:48 -05:00 committed by GitHub
parent 1a9e28191f
commit 2305576ab7

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=.*/motd=$MOTD" /data/server.properties
sed -i "s/motd\s*=/ c motd=$MOTD" /data/server.properties
fi
if [[ -n "$ENABLE_WHITELIST" ]]; then
sed -i "s/white-list=.*/white-list=$ENABLE_WHITELIST/" /data/server.properties