diff --git a/Dockerfile b/Dockerfile index 4281b814..617ee7ab 100644 --- a/Dockerfile +++ b/Dockerfile @@ -59,7 +59,8 @@ RUN easy-add --var os=${TARGETOS} --var arch=${TARGETARCH}${TARGETVARIANT} \ --var version=0.1.1 --var app=maven-metadata-release --file {{.app}} \ --from https://github.com/itzg/{{.app}}/releases/download/{{.version}}/{{.app}}_{{.version}}_{{.os}}_{{.arch}}.tar.gz -ADD https://jitpack.io/com/github/itzg/asciify/1.0.0/asciify-1.0.0.jar /usr/share/asciify/asciify.jar +ARG ASCIIFY_VERSION=1.0.1 +ADD https://jitpack.io/com/github/itzg/asciify/${ASCIIFY_VERSION}/asciify-${ASCIIFY_VERSION}.jar /usr/share/asciify/asciify.jar RUN chmod -R a+r /usr/share/asciify COPY mcstatus /usr/local/bin diff --git a/README.md b/README.md index 6d07a0fd..1c30e934 100644 --- a/README.md +++ b/README.md @@ -969,7 +969,7 @@ For example: ### Message of the Day -The message of the day, shown below each server entry in the UI, can be changed with the `MOTD` environment variable, such as +The message of the day, shown below each server entry in the client UI, can be changed with the `MOTD` environment variable, such as -e MOTD="My Server" @@ -979,6 +979,14 @@ If you leave it off, a default is computed from the server type and version, suc That way you can easily differentiate between several servers you may have started. +The section symbol (§) and other unicode characters are automatically converted to allow [formatting codes](https://minecraft.fandom.com/wiki/Formatting_codes) to be used consistently with all server versions. For example, + + -e MOTD="A §l§cMinecraft§r §nserver" + +renders + +![](docs/motd-example.png) + ### PVP Mode By default, servers are created with player-vs-player (PVP) mode enabled. You can disable this with the `PVP`