mirror of
https://github.com/itzg/docker-minecraft-server.git
synced 2026-09-03 20:55:05 +00:00
Added support for Magma version tags (#2247)
This commit is contained in:
@@ -511,8 +511,10 @@ Extra variables:
|
|||||||
A [Magma](https://magmafoundation.org/) server, which is a combination of Forge and PaperMC, can be used with
|
A [Magma](https://magmafoundation.org/) server, which is a combination of Forge and PaperMC, can be used with
|
||||||
|
|
||||||
-e TYPE=MAGMA
|
-e TYPE=MAGMA
|
||||||
|
-e MAGMA_VERSION=9f3a3c25
|
||||||
|
|
||||||
> **NOTE** there are limited base versions supported, so you will also need to set `VERSION`, such as "1.12.2", "1.16.5", etc.
|
> **NOTE** there are limited base versions supported, so you will also need to set `VERSION`, such as "1.12.2", "1.16.5", etc.
|
||||||
|
> To switch the MAGMA version, you need to take the name of the desired tag from the magmafoundation git repository, [for example, to version 1.18](https://git.magmafoundation.org/magmafoundation/Magma-1-18-x/-/tags).
|
||||||
|
|
||||||
|
|
||||||
### Running a Mohist server
|
### Running a Mohist server
|
||||||
|
|||||||
@@ -4,9 +4,11 @@
|
|||||||
. "${SCRIPTS:-/}start-utils"
|
. "${SCRIPTS:-/}start-utils"
|
||||||
isDebugging && set -x
|
isDebugging && set -x
|
||||||
|
|
||||||
|
: "${MAGMA_VERSION:=}"
|
||||||
|
|
||||||
resolveVersion
|
resolveVersion
|
||||||
|
|
||||||
if ! downloadUrl=$(get --json-path '$.link' "https://api.magmafoundation.org/api/v2/${VERSION}/latest"); then
|
if ! downloadUrl=$(get --json-path '$.link' "https://api.magmafoundation.org/api/v2/${VERSION}/latest/${MAGMA_VERSION}"); then
|
||||||
log "ERROR failed to locate latest Magma download for ${VERSION}. Is that version supported?"
|
log "ERROR failed to locate latest Magma download for ${VERSION}. Is that version supported?"
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|||||||
Reference in New Issue
Block a user