mirror of
https://github.com/itzg/docker-minecraft-server.git
synced 2026-06-03 01:09:44 +00:00
mc: add support for BUFFET level type
mc: fix some typos in spigot download messages
This commit is contained in:
@@ -649,10 +649,11 @@ be configured by setting `LEVEL_TYPE` to
|
|||||||
* LARGEBIOMES
|
* LARGEBIOMES
|
||||||
* AMPLIFIED
|
* AMPLIFIED
|
||||||
* CUSTOMIZED
|
* CUSTOMIZED
|
||||||
|
* BUFFET
|
||||||
|
|
||||||
Descriptions are available at the [gamepedia](http://minecraft.gamepedia.com/Server.properties).
|
Descriptions are available at the [gamepedia](http://minecraft.gamepedia.com/Server.properties).
|
||||||
|
|
||||||
When using a level type of `FLAT` and `CUSTOMIZED`, you can further configure the world generator
|
When using a level type of `FLAT`, `CUSTOMIZED`, and `BUFFET`, you can further configure the world generator
|
||||||
by passing [custom generator settings](http://minecraft.gamepedia.com/Superflat).
|
by passing [custom generator settings](http://minecraft.gamepedia.com/Superflat).
|
||||||
**Since generator settings usually have ;'s in them, surround the -e value with a single quote, like below.**
|
**Since generator settings usually have ;'s in them, surround the -e value with a single quote, like below.**
|
||||||
|
|
||||||
|
|||||||
@@ -39,7 +39,7 @@ function downloadSpigot {
|
|||||||
downloadUrl="https://cdn.getbukkit.org/${getbukkitFlavor}/${getbukkitFlavor}-${downloadVersion}.jar"
|
downloadUrl="https://cdn.getbukkit.org/${getbukkitFlavor}/${getbukkitFlavor}-${downloadVersion}.jar"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
echo "Downloading $match ..."
|
echo "Downloading $match from $downloadUrl ..."
|
||||||
if ! curl -fsSL -o $SERVER "$downloadUrl"; then
|
if ! curl -fsSL -o $SERVER "$downloadUrl"; then
|
||||||
cat <<EOF
|
cat <<EOF
|
||||||
|
|
||||||
|
|||||||
@@ -4,10 +4,9 @@
|
|||||||
if [[ "$WORLD" ]]; then
|
if [[ "$WORLD" ]]; then
|
||||||
case "X$WORLD" in
|
case "X$WORLD" in
|
||||||
X[Hh][Tt][Tt][Pp]*)
|
X[Hh][Tt][Tt][Pp]*)
|
||||||
echo "Downloading world via HTTP"
|
echo "Downloading world from $WORLD"
|
||||||
echo "$WORLD"
|
|
||||||
curl -sSL -o - "$WORLD" > /data/world.zip
|
curl -sSL -o - "$WORLD" > /data/world.zip
|
||||||
echo "Unzipping word"
|
echo "Unzipping world"
|
||||||
unzip -q /data/world.zip
|
unzip -q /data/world.zip
|
||||||
rm -f /data/world.zip
|
rm -f /data/world.zip
|
||||||
if [ ! -d /data/world ]; then
|
if [ ! -d /data/world ]; then
|
||||||
|
|||||||
@@ -85,7 +85,7 @@ if [ ! -e $SERVER_PROPERTIES ]; then
|
|||||||
echo "Setting level type to $LEVEL_TYPE"
|
echo "Setting level type to $LEVEL_TYPE"
|
||||||
# check for valid values and only then set
|
# check for valid values and only then set
|
||||||
case $LEVEL_TYPE in
|
case $LEVEL_TYPE in
|
||||||
DEFAULT|FLAT|LARGEBIOMES|AMPLIFIED|CUSTOMIZED|BIOMESOP|RTG)
|
DEFAULT|FLAT|LARGEBIOMES|AMPLIFIED|CUSTOMIZED|BIOMESOP|RTG|BUFFET)
|
||||||
setServerProp "level-type" "$LEVEL_TYPE"
|
setServerProp "level-type" "$LEVEL_TYPE"
|
||||||
;;
|
;;
|
||||||
*)
|
*)
|
||||||
|
|||||||
Reference in New Issue
Block a user