mc: add support for BUFFET level type

mc: fix some typos in spigot download messages
This commit is contained in:
Geoff Bourne
2018-07-29 13:41:00 -05:00
parent f66e1ff103
commit 8a26e73dab
4 changed files with 13 additions and 13 deletions
+2 -1
View File
@@ -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.**
+1 -1
View File
@@ -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
+2 -3
View File
@@ -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"
;; ;;
*) *)