mirror of
https://github.com/itzg/docker-minecraft-server.git
synced 2026-04-24 22:39:29 +00:00
@@ -503,12 +503,17 @@ if [ "$TYPE" = "SPIGOT" ]; then
|
|||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [[ $CONSOLE = false ]]; then
|
EXTRA_ARGS=""
|
||||||
EXTRA_ARGS=--noconsole
|
# Optional disable console
|
||||||
else
|
if [[ ${CONSOLE} = false || ${CONSOLE} = FALSE ]]; then
|
||||||
EXTRA_ARGS=""
|
EXTRA_ARGS+="--noconsole"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# Optional disable GUI for headless servers
|
||||||
|
if [[ ${GUI} = false || ${GUI} = FALSE ]]; then
|
||||||
|
EXTRA_ARGS="${EXTRA_ARGS} nogui"
|
||||||
|
fi
|
||||||
|
|
||||||
# put these prior JVM_OPTS at the end to give any memory settings there higher precedence
|
# put these prior JVM_OPTS at the end to give any memory settings there higher precedence
|
||||||
echo "Setting initial memory to ${INIT_MEMORY:-${MEMORY}} and max to ${MAX_MEMORY:-${MEMORY}}"
|
echo "Setting initial memory to ${INIT_MEMORY:-${MEMORY}} and max to ${MAX_MEMORY:-${MEMORY}}"
|
||||||
JVM_OPTS="-Xms${INIT_MEMORY:-${MEMORY}} -Xmx${MAX_MEMORY:-${MEMORY}} ${JVM_OPTS}"
|
JVM_OPTS="-Xms${INIT_MEMORY:-${MEMORY}} -Xmx${MAX_MEMORY:-${MEMORY}} ${JVM_OPTS}"
|
||||||
|
|||||||
Reference in New Issue
Block a user