diff --git a/Dockerfile b/Dockerfile index 4854fe8..f0a5745 100644 --- a/Dockerfile +++ b/Dockerfile @@ -44,7 +44,7 @@ RUN easy-add --var os=${TARGETOS} --var arch=${TARGETARCH}${TARGETVARIANT} \ --var version=${MC_MONITOR_VERSION} --var app=mc-monitor --file {{.app}} \ --from ${GITHUB_BASEURL}/itzg/{{.app}}/releases/download/{{.version}}/{{.app}}_{{.version}}_{{.os}}_{{.arch}}.tar.gz -ARG MC_SERVER_RUNNER_VERSION=1.10.0 +ARG MC_SERVER_RUNNER_VERSION=1.11.0 RUN easy-add --var os=${TARGETOS} --var arch=${TARGETARCH}${TARGETVARIANT} \ --var version=${MC_SERVER_RUNNER_VERSION} --var app=mc-server-runner --file {{.app}} \ --from ${GITHUB_BASEURL}/itzg/{{.app}}/releases/download/{{.version}}/{{.app}}_{{.version}}_{{.os}}_{{.arch}}.tar.gz diff --git a/bin/mc-send-to-console b/bin/mc-send-to-console index d1f70eb..9f1762a 100755 --- a/bin/mc-send-to-console +++ b/bin/mc-send-to-console @@ -2,6 +2,11 @@ . "/start-utils" : "${CONSOLE_IN_NAMED_PIPE:=/tmp/minecraft-console-in}" +if isFalse "${CREATE_CONSOLE_IN_PIPE:-false}"; then + echo "ERROR: console pipe needs to be enabled by setting CREATE_CONSOLE_IN_PIPE to true" +fi + + if [ $# = 0 ]; then echo "ERROR: pass console commands as arguments" exit 1 diff --git a/scripts/start-finalExec b/scripts/start-finalExec index e48ddb0..7d2b109 100755 --- a/scripts/start-finalExec +++ b/scripts/start-finalExec @@ -231,8 +231,10 @@ fi mcServerRunnerArgs=( --stop-duration "${STOP_DURATION:-60}s" ---named-pipe "${CONSOLE_IN_NAMED_PIPE:-/tmp/minecraft-console-in}" ) +if isTrue "${CREATE_CONSOLE_IN_PIPE:-false}"; then + mcServerRunnerArgs+=(--named-pipe "${CONSOLE_IN_NAMED_PIPE:-/tmp/minecraft-console-in}") +fi if [[ ${STOP_SERVER_ANNOUNCE_DELAY} ]]; then mcServerRunnerArgs+=(--stop-server-announce-delay "${STOP_SERVER_ANNOUNCE_DELAY}s") fi