mirror of
https://github.com/itzg/docker-minecraft-server.git
synced 2026-06-05 18:29:45 +00:00
Compare commits
33 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 984c969da2 | |||
| aff65b74ff | |||
| 2ed5de68f9 | |||
| a4b6ee6d3b | |||
| 6729ba462e | |||
| 4b28d5e472 | |||
| 3a31ce757d | |||
| be2ef20fc1 | |||
| 3f2022da40 | |||
| 0f7464403c | |||
| 6020400d3b | |||
| ae96adaeec | |||
| d34be9f20e | |||
| 64a02d28bc | |||
| c446cb11da | |||
| 7aea5b593e | |||
| 91adfaa1d9 | |||
| e7b223f1c6 | |||
| 45eff98011 | |||
| b4111f0428 | |||
| 288bdf3804 | |||
| 5bc1ac672e | |||
| a503ad2ec2 | |||
| 3042aa4909 | |||
| 8882ae5f89 | |||
| 4149db7f11 | |||
| 666f538ad5 | |||
| 145403ea54 | |||
| 5392801ecd | |||
| 3dfd70d068 | |||
| e5bc9b939f | |||
| 1b620d2d6d | |||
| 28d77853cb |
@@ -139,7 +139,7 @@ By default, the container will download the latest version of the "vanilla" [Min
|
||||
* [Running on RaspberryPi](#running-on-raspberrypi)
|
||||
* [Contributing](#contributing)
|
||||
|
||||
<!-- Added by: runner, at: Sat Jan 8 00:32:28 UTC 2022 -->
|
||||
<!-- Added by: runner, at: Thu Jan 6 12:50:03 UTC 2022 -->
|
||||
|
||||
<!--te-->
|
||||
|
||||
@@ -284,7 +284,7 @@ When using the image `itzg:/minecraft-server` without a tag, the `latest` image
|
||||
|
||||
| Tag name | Java version | Linux | JVM Type | Architecture |
|
||||
| -------------- | -------------|--------|----------|-------------------|
|
||||
| latest | 17 | Debian | Hotspot | amd64,arm64,armv7 |
|
||||
| latest | 16 | Debian | Hotspot | amd64,arm64,armv7 |
|
||||
| java8 | 8 | Alpine | Hotspot | amd64 |
|
||||
| java8-multiarch | 8 | Debian | Hotspot | amd64,arm64,armv7 |
|
||||
| java8-openj9 | 8 | Debian | OpenJ9 | amd64 |
|
||||
@@ -587,8 +587,6 @@ Configuration options with defaults:
|
||||
- `LIMBO_SCHEMA_FILENAME`=default.schem
|
||||
- `LEVEL`="Default;${LIMBO_SCHEMA_FILENAME}"
|
||||
|
||||
> NOTE: instead of using format codes in the MOTD, Limbo requires [JSON chat content](https://minecraft.fandom.com/wiki/Raw_JSON_text_format#Java_Edition). If a plain string is provided, which is the default, then it gets converted into the required JSON structure.
|
||||
|
||||
### Running a Crucible server
|
||||
|
||||
A [Crucible](https://github.com/CrucibleMC/Crucible) server can be run by setting `TYPE` to `CRUCIBLE`.
|
||||
|
||||
@@ -323,10 +323,10 @@ EOF
|
||||
else
|
||||
exec mc-server-runner "${mcServerRunnerArgs[@]}" "${finalArgs[@]}"
|
||||
fi
|
||||
elif [[ $SERVER =~ run.sh ]]; then
|
||||
elif [[ -x run.sh ]]; then
|
||||
log "Using Forge supplied run.sh script..."
|
||||
echo $JVM_XX_OPTS $JVM_OPTS $expandedDOpts > user_jvm_args.txt
|
||||
exec mc-server-runner "${mcServerRunnerArgs[@]}" --shell bash "${SERVER}"
|
||||
exec mc-server-runner "${mcServerRunnerArgs[@]}" --shell bash run.sh
|
||||
else
|
||||
# If we have a bootstrap.txt file... feed that in to the server stdin
|
||||
if [ -f /data/bootstrap.txt ]; then
|
||||
|
||||
@@ -48,7 +48,7 @@ function customizeServerProps {
|
||||
|
||||
# If not provided, generate a reasonable default message-of-the-day,
|
||||
# which shows up in the server listing in the client
|
||||
if ! [ -v "$MOTD" ]; then
|
||||
if [ -z "$MOTD" ]; then
|
||||
# snapshot is the odd case where we have to look at version to identify that label
|
||||
if [[ ${ORIGINAL_TYPE} == "VANILLA" && ${VERSION} == "SNAPSHOT" ]]; then
|
||||
label=SNAPSHOT
|
||||
@@ -62,13 +62,6 @@ function customizeServerProps {
|
||||
MOTD="A ${label} Minecraft Server powered by Docker"
|
||||
fi
|
||||
|
||||
# normalize MOTD
|
||||
if [[ ${TYPE^^} = LIMBO ]]; then
|
||||
if [[ $MOTD ]] && ! [[ $MOTD =~ ^{ ]]; then
|
||||
MOTD="{\"text\":\"${MOTD}\"}"
|
||||
fi
|
||||
fi
|
||||
|
||||
setServerProp "server-name" SERVER_NAME
|
||||
setServerProp "server-ip" SERVER_IP
|
||||
setServerProp "server-port" SERVER_PORT
|
||||
|
||||
Reference in New Issue
Block a user