docs: described unicode conversion for MOTD

This commit is contained in:
Geoff Bourne
2021-09-05 14:11:26 -05:00
parent f7cd34b8d8
commit 296ddbdec5
2 changed files with 11 additions and 2 deletions
+2 -1
View File
@@ -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}} \ --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 --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 RUN chmod -R a+r /usr/share/asciify
COPY mcstatus /usr/local/bin COPY mcstatus /usr/local/bin
+9 -1
View File
@@ -969,7 +969,7 @@ For example:
### Message of the Day ### 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" -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. 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 ### PVP Mode
By default, servers are created with player-vs-player (PVP) mode enabled. You can disable this with the `PVP` By default, servers are created with player-vs-player (PVP) mode enabled. You can disable this with the `PVP`