From 56c2f0b4661142ae992e0e24035d0d80c08e0276 Mon Sep 17 00:00:00 2001 From: Geoff Bourne Date: Sun, 5 Apr 2020 17:32:26 -0500 Subject: [PATCH] Disabled log4j config when TYPE=SPIGOT Helps #482 --- start-minecraftFinalSetup | 2 ++ 1 file changed, 2 insertions(+) diff --git a/start-minecraftFinalSetup b/start-minecraftFinalSetup index 20836787..a0ee38dd 100644 --- a/start-minecraftFinalSetup +++ b/start-minecraftFinalSetup @@ -27,6 +27,7 @@ if [ -n "$ICON" -a ! -e server-icon.png ]; then fi fi +if [ ${TYPE} != "SPIGOT" ]; then # Set up log configuration LOGFILE="/data/log4j2.xml" if [ ! -e "$LOGFILE" ]; then @@ -36,6 +37,7 @@ else log "log4j2.xml already created, skipping" fi JVM_OPTS="-Dlog4j.configurationFile=/data/log4j2.xml ${JVM_OPTS}" +fi # Make sure files exist and are valid JSON (for pre-1.12 to 1.12 upgrades) log "Checking for JSON files."