From cf484d806a94092f024eb849d770acfc1abb1730 Mon Sep 17 00:00:00 2001 From: Michael Parker Date: Sat, 25 Apr 2020 18:45:49 -0400 Subject: [PATCH] reorganize minecraft Moves minecraft to a single folder with all the variants under that. This should also update all the installers to pull from the correct folders still. --- README.md | 46 +++++++++---------- minecraft/README.md | 24 ++++++++++ .../bedrock}/README.md | 0 .../bedrock}/bedrock/README.md | 0 .../bedrock}/bedrock/egg-vanilla-bedrock.json | 0 .../bedrock}/dragon_proxy/README.md | 0 .../dragon_proxy/egg-dragon-proxy.json | 0 .../bedrock}/nukkit/egg-nukkit.json | 2 +- .../bedrock}/nukkit/nukkit.yml | 0 .../bedrock}/nukkit/server.properties | 0 .../pocketmine_mp/egg-pocketmine-m-p.json | 2 +- .../bedrock}/pocketmine_mp/server.properties | 0 {minecraft_java => minecraft/java}/README.md | 0 .../java}/cuberite/README.md | 0 .../java}/cuberite/egg-cuberite.json | 0 .../java}/cuberite/settings.ini | 0 .../java}/cuberite/webadmin.ini | 0 .../java}/feather/README.md | 0 .../java}/feather/egg-feather.json | 0 .../java}/feather/feather.toml | 0 .../java}/forge/curseforge-generic/README.md | 0 .../egg-curseforge-generic.json | 0 .../java}/forge/forge/README.md | 0 .../java}/forge/forge/egg-forge-enhanced.json | 0 .../feed-the-beast/egg-feed-the-beast.json | 0 .../ftb-revelation/egg-f-t-b-revelation.json | 0 .../java}/magma/README.md | 0 .../java}/magma/egg-magma.json | 0 .../java}/paper/README.MD | 0 .../java}/paper/egg-paper.json | 2 +- .../java}/server.properties | 0 .../java}/spigot/README.MD | 0 .../java}/spigot/egg-spigot.json | 0 .../java}/spongeforge/README.MD | 0 .../java}/spongeforge/egg-sponge-forge.json | 2 +- .../java}/spongevanilla/README.MD | 0 .../spongevanilla/egg-sponge-vanilla.json | 2 +- .../java}/technic/README.md | 10 ++-- .../technic/attack-of-the-bteam/README.MD | 0 .../egg-attack-of-the-b--team.json | 0 .../technic/blightfall/egg-blightfall.json | 0 .../java}/technic/hexxit/egg-hexxit.json | 0 .../tekkit-legends/egg-tekkit-legends.json | 0 .../java}/tuinity/.gitignore | 0 .../java}/tuinity/egg-tuinity.json | 2 +- .../java}/vanillacord/README.md | 0 .../java}/vanillacord/egg-vanilla-cord.json | 0 .../proxy}/typhoonlimbo/README.md | 0 .../typhoonlimbo/egg-typhoon-limbo.json | 0 .../proxy}/velocity/README.md | 0 .../proxy}/velocity/egg-velocity.json | 2 +- .../proxy}/velocity/velocity.toml | 0 .../proxy}/waterfall/README.md | 0 .../proxy}/waterfall/config.yml | 0 .../proxy}/waterfall/egg-waterfall.json | 2 +- stock-eggs/minecraft/egg-paper.json | 2 +- 56 files changed, 61 insertions(+), 37 deletions(-) create mode 100644 minecraft/README.md rename {minecraft_bedrock => minecraft/bedrock}/README.md (100%) rename {minecraft_bedrock => minecraft/bedrock}/bedrock/README.md (100%) rename {minecraft_bedrock => minecraft/bedrock}/bedrock/egg-vanilla-bedrock.json (100%) rename {minecraft_bedrock => minecraft/bedrock}/dragon_proxy/README.md (100%) rename {minecraft_bedrock => minecraft/bedrock}/dragon_proxy/egg-dragon-proxy.json (100%) rename {minecraft_bedrock => minecraft/bedrock}/nukkit/egg-nukkit.json (94%) rename {minecraft_bedrock => minecraft/bedrock}/nukkit/nukkit.yml (100%) rename {minecraft_bedrock => minecraft/bedrock}/nukkit/server.properties (100%) rename {minecraft_bedrock => minecraft/bedrock}/pocketmine_mp/egg-pocketmine-m-p.json (85%) rename {minecraft_bedrock => minecraft/bedrock}/pocketmine_mp/server.properties (100%) rename {minecraft_java => minecraft/java}/README.md (100%) rename {minecraft_java => minecraft/java}/cuberite/README.md (100%) rename {minecraft_java => minecraft/java}/cuberite/egg-cuberite.json (100%) rename {minecraft_java => minecraft/java}/cuberite/settings.ini (100%) rename {minecraft_java => minecraft/java}/cuberite/webadmin.ini (100%) rename {minecraft_java => minecraft/java}/feather/README.md (100%) rename {minecraft_java => minecraft/java}/feather/egg-feather.json (100%) rename {minecraft_java => minecraft/java}/feather/feather.toml (100%) rename {minecraft_java => minecraft/java}/forge/curseforge-generic/README.md (100%) rename {minecraft_java => minecraft/java}/forge/curseforge-generic/egg-curseforge-generic.json (100%) rename {minecraft_java => minecraft/java}/forge/forge/README.md (100%) rename {minecraft_java => minecraft/java}/forge/forge/egg-forge-enhanced.json (100%) rename {minecraft_java => minecraft/java}/ftb/feed-the-beast/egg-feed-the-beast.json (100%) rename {minecraft_java => minecraft/java}/ftb/ftb-revelation/egg-f-t-b-revelation.json (100%) rename {minecraft_java => minecraft/java}/magma/README.md (100%) rename {minecraft_java => minecraft/java}/magma/egg-magma.json (100%) rename {minecraft_java => minecraft/java}/paper/README.MD (100%) rename {minecraft_java => minecraft/java}/paper/egg-paper.json (99%) rename {minecraft_java => minecraft/java}/server.properties (100%) rename {minecraft_java => minecraft/java}/spigot/README.MD (100%) rename {minecraft_java => minecraft/java}/spigot/egg-spigot.json (100%) rename {minecraft_java => minecraft/java}/spongeforge/README.MD (100%) rename {minecraft_java => minecraft/java}/spongeforge/egg-sponge-forge.json (98%) rename {minecraft_java => minecraft/java}/spongevanilla/README.MD (100%) rename {minecraft_java => minecraft/java}/spongevanilla/egg-sponge-vanilla.json (97%) rename {minecraft_java => minecraft/java}/technic/README.md (72%) rename {minecraft_java => minecraft/java}/technic/attack-of-the-bteam/README.MD (100%) rename {minecraft_java => minecraft/java}/technic/attack-of-the-bteam/egg-attack-of-the-b--team.json (100%) rename {minecraft_java => minecraft/java}/technic/blightfall/egg-blightfall.json (100%) rename {minecraft_java => minecraft/java}/technic/hexxit/egg-hexxit.json (100%) rename {minecraft_java => minecraft/java}/technic/tekkit-legends/egg-tekkit-legends.json (100%) rename {minecraft_java => minecraft/java}/tuinity/.gitignore (100%) rename {minecraft_java => minecraft/java}/tuinity/egg-tuinity.json (88%) rename {minecraft_java => minecraft/java}/vanillacord/README.md (100%) rename {minecraft_java => minecraft/java}/vanillacord/egg-vanilla-cord.json (100%) rename {minecraft_proxy => minecraft/proxy}/typhoonlimbo/README.md (100%) rename {minecraft_proxy => minecraft/proxy}/typhoonlimbo/egg-typhoon-limbo.json (100%) rename {minecraft_proxy => minecraft/proxy}/velocity/README.md (100%) rename {minecraft_proxy => minecraft/proxy}/velocity/egg-velocity.json (96%) rename {minecraft_proxy => minecraft/proxy}/velocity/velocity.toml (100%) rename {minecraft_proxy => minecraft/proxy}/waterfall/README.md (100%) rename {minecraft_proxy => minecraft/proxy}/waterfall/config.yml (100%) rename {minecraft_proxy => minecraft/proxy}/waterfall/egg-waterfall.json (97%) diff --git a/README.md b/README.md index 5733cc05..a91ad761 100644 --- a/README.md +++ b/README.md @@ -68,31 +68,31 @@ If you are reading this it looks like you are looking to add an egg to your serv [Mindusrty](/mindustry/) -[Minecraft Bedrock](/minecraft_bedrock/) -* [Bedrock](/minecraft_bedrock/bedrock/) -* [DragonProxy](/minecraft_bedrock/dragonproxy/) -* [Nukkit](/minecraft_bedrock/nukkit/) -* [PocketMine MP](/minecraft_bedrock/pocketmine_mp/) +[Minecraft](/minecraft/) +* [Minecraft Bedrock](/minecraft/bedrock/) + * [Bedrock](/minecraft/bedrock/bedrock/) + * [DragonProxy](/minecraft/bedrock/dragonproxy/) + * [Nukkit](/minecraft/bedrock/nukkit/) + * [PocketMine MP](/minecraft/bedrock/pocketmine_mp/) -[Minecraft Java](/minecraft_java/) Servers for Java Minecraft -* [Cuberite](/minecraft_java/cuberite/) -* [feather](/minecraft/feather/) -* [Feed The Beast](/minecraft_java/ftb/) -* [Forge](/minecraft_java/forge/) -* [Magma](/minecraft_java/magma/) +* [Minecraft Java](/minecraft/java/) Servers for Java Minecraft + * [Cuberite](/minecraft/java/cuberite/) + * [feather](/minecraft/feather/) + * [Feed The Beast](/minecraft/java/ftb/) + * [Forge](/minecraft/java/forge/) + * [Magma](/minecraft/java/magma/) + * [Paper](/minecraft/java/paper) + * [Spigot](/minecraft/java/spigot/) + * [spongeforge](/minecraft/java/spongeforge/) + * [SpongeVanilla](/minecraft/java/spongevanilla/) + * [Technic](/minecraft/java/technic/) + * [VanillaCord](/minecraft/java/vanillacord/) + * [Tuinity](/minecraft/java/tuinity/) -* [Paper](/minecraft_java/paper) -* [Spigot](/minecraft_java/spigot/) -* [spongeforge](/minecraft_java/spongeforge/) -* [SpongeVanilla](/minecraft_java/spongevanilla/) -* [Technic](/minecraft_java/technic/) -* [VanillaCord](/minecraft_java/vanillacord/) -* [Tuinity](/minecraft_java/tuinity/) - -[Minecraft Proxies](/minecraft_proxy/) (these are for the java version of minecraft) -* [Waterfall](/minecraft_proxy/waterfall/) -* [TyphoonLimbo](/minecraft_proxy/typhoonlimbo/) -* [Velocity](/minecraft_proxy/velocity/) +* [Minecraft Proxies](/minecraft/proxy/) (these are for the java version of minecraft) + * [Waterfall](/minecraft/proxy/waterfall/) + * [TyphoonLimbo](/minecraft/proxy/typhoonlimbo/) + * [Velocity](/minecraft/proxy/velocity/) [Red Dead Redemption](/rdr/) * [RedM](/rdr/redm/) diff --git a/minecraft/README.md b/minecraft/README.md new file mode 100644 index 00000000..dfa1a828 --- /dev/null +++ b/minecraft/README.md @@ -0,0 +1,24 @@ +* [Minecraft Bedrock](bedrock/) + * [Bedrock](bedrock/bedrock/) + * [DragonProxy](bedrock/dragonproxy/) + * [Nukkit](bedrock/nukkit/) + * [PocketMine MP](bedrock/pocketmine_mp/) + +* [Minecraft Java](java/) Servers for Java Minecraft + * [Cuberite](java/cuberite/) + * [feather](feather/) + * [Feed The Beast](java/ftb/) + * [Forge](java/forge/) + * [Magma](java/magma/) + * [Paper](java/paper) + * [Spigot](java/spigot/) + * [spongeforge](java/spongeforge/) + * [SpongeVanilla](java/spongevanilla/) + * [Technic](java/technic/) + * [VanillaCord](java/vanillacord/) + * [Tuinity](java/tuinity/) + +* [Minecraft Proxies](proxy/) (these are for the java version of minecraft) + * [Waterfall](proxy/waterfall/) + * [TyphoonLimbo](proxy/typhoonlimbo/) + * [Velocity](proxy/velocity/) \ No newline at end of file diff --git a/minecraft_bedrock/README.md b/minecraft/bedrock/README.md similarity index 100% rename from minecraft_bedrock/README.md rename to minecraft/bedrock/README.md diff --git a/minecraft_bedrock/bedrock/README.md b/minecraft/bedrock/bedrock/README.md similarity index 100% rename from minecraft_bedrock/bedrock/README.md rename to minecraft/bedrock/bedrock/README.md diff --git a/minecraft_bedrock/bedrock/egg-vanilla-bedrock.json b/minecraft/bedrock/bedrock/egg-vanilla-bedrock.json similarity index 100% rename from minecraft_bedrock/bedrock/egg-vanilla-bedrock.json rename to minecraft/bedrock/bedrock/egg-vanilla-bedrock.json diff --git a/minecraft_bedrock/dragon_proxy/README.md b/minecraft/bedrock/dragon_proxy/README.md similarity index 100% rename from minecraft_bedrock/dragon_proxy/README.md rename to minecraft/bedrock/dragon_proxy/README.md diff --git a/minecraft_bedrock/dragon_proxy/egg-dragon-proxy.json b/minecraft/bedrock/dragon_proxy/egg-dragon-proxy.json similarity index 100% rename from minecraft_bedrock/dragon_proxy/egg-dragon-proxy.json rename to minecraft/bedrock/dragon_proxy/egg-dragon-proxy.json diff --git a/minecraft_bedrock/nukkit/egg-nukkit.json b/minecraft/bedrock/nukkit/egg-nukkit.json similarity index 94% rename from minecraft_bedrock/nukkit/egg-nukkit.json rename to minecraft/bedrock/nukkit/egg-nukkit.json index 1444cb91..436e6632 100644 --- a/minecraft_bedrock/nukkit/egg-nukkit.json +++ b/minecraft/bedrock/nukkit/egg-nukkit.json @@ -17,7 +17,7 @@ }, "scripts": { "installation": { - "script": "#!\/bin\/ash\r\n# Nukkit Installation Script\r\n#\r\n# Server Files: \/mnt\/server\r\napk add --no-cache curl openssl\r\n\r\ncd \/mnt\/server\r\n\r\n## Only download if a path is provided, otherwise continue.\r\nif [ ! -z \"${DL_PATH}\" ]; then\r\n MODIFIED_DOWNLOAD=`eval echo $(echo ${DL_PATH} | sed -e 's\/{{\/${\/g' -e 's\/}}\/}\/g')`\r\n wget ${MODIFIED_DOWNLOAD} -O ${SERVER_JARFILE}\r\nelif [ -z \"${NUKKIT_VERSION}\" ] || [ \"${NUKKIT_VERSION}\" == \"latest\" ]; then\r\n wget https:\/\/ci.nukkitx.com\/job\/NukkitX\/job\/Nukkit\/job\/master\/lastSuccessfulBuild\/artifact\/target\/nukkit-1.0-SNAPSHOT.jar -O ${SERVER_JARFILE}\r\nelse\r\n wget https:\/\/ci.nukkitx.com\/job\/NukkitX\/job\/Nukkit\/job\/master\/${NUKKIT_VERSION}\/artifact\/target\/nukkit-1.0-SNAPSHOT.jar -O ${SERVER_JARFILE}\r\nfi\r\n\r\nif [ ! -f nukkit.yml ]; then\r\n wget https:\/\/raw.githubusercontent.com\/parkervcp\/eggs\/master\/minecraft_bedrock\/nukkit\/nukkit.yml\r\nfi\r\n\r\nif [ ! -f nukkit.yml ]; then\r\n wget https:\/\/raw.githubusercontent.com\/parkervcp\/eggs\/master\/minecraft_bedrock\/nukkit\/server.properties\r\nfi", + "script": "#!\/bin\/ash\r\n# Nukkit Installation Script\r\n#\r\n# Server Files: \/mnt\/server\r\napk add --no-cache curl openssl\r\n\r\ncd \/mnt\/server\r\n\r\n## Only download if a path is provided, otherwise continue.\r\nif [ ! -z \"${DL_PATH}\" ]; then\r\n MODIFIED_DOWNLOAD=`eval echo $(echo ${DL_PATH} | sed -e 's\/{{\/${\/g' -e 's\/}}\/}\/g')`\r\n wget ${MODIFIED_DOWNLOAD} -O ${SERVER_JARFILE}\r\nelif [ -z \"${NUKKIT_VERSION}\" ] || [ \"${NUKKIT_VERSION}\" == \"latest\" ]; then\r\n wget https:\/\/ci.nukkitx.com\/job\/NukkitX\/job\/Nukkit\/job\/master\/lastSuccessfulBuild\/artifact\/target\/nukkit-1.0-SNAPSHOT.jar -O ${SERVER_JARFILE}\r\nelse\r\n wget https:\/\/ci.nukkitx.com\/job\/NukkitX\/job\/Nukkit\/job\/master\/${NUKKIT_VERSION}\/artifact\/target\/nukkit-1.0-SNAPSHOT.jar -O ${SERVER_JARFILE}\r\nfi\r\n\r\nif [ ! -f nukkit.yml ]; then\r\n wget https:\/\/raw.githubusercontent.com\/parkervcp\/eggs\/master\/minecraft\/bedrock\/nukkit\/nukkit.yml\r\nfi\r\n\r\nif [ ! -f nukkit.yml ]; then\r\n wget https:\/\/raw.githubusercontent.com\/parkervcp\/eggs\/master\/minecraft\/bedrock\/nukkit\/server.properties\r\nfi", "container": "alpine:3.10", "entrypoint": "ash" } diff --git a/minecraft_bedrock/nukkit/nukkit.yml b/minecraft/bedrock/nukkit/nukkit.yml similarity index 100% rename from minecraft_bedrock/nukkit/nukkit.yml rename to minecraft/bedrock/nukkit/nukkit.yml diff --git a/minecraft_bedrock/nukkit/server.properties b/minecraft/bedrock/nukkit/server.properties similarity index 100% rename from minecraft_bedrock/nukkit/server.properties rename to minecraft/bedrock/nukkit/server.properties diff --git a/minecraft_bedrock/pocketmine_mp/egg-pocketmine-m-p.json b/minecraft/bedrock/pocketmine_mp/egg-pocketmine-m-p.json similarity index 85% rename from minecraft_bedrock/pocketmine_mp/egg-pocketmine-m-p.json rename to minecraft/bedrock/pocketmine_mp/egg-pocketmine-m-p.json index 8f0f3877..86b04216 100644 --- a/minecraft_bedrock/pocketmine_mp/egg-pocketmine-m-p.json +++ b/minecraft/bedrock/pocketmine_mp/egg-pocketmine-m-p.json @@ -17,7 +17,7 @@ }, "scripts": { "installation": { - "script": "#!\/bin\/ash\r\n\r\napk add --no-cache curl\r\n\r\ncd \/mnt\/server\r\n\r\necho -e \"\\n downloading pocketmine MP build ${PMMP_VERSION}\"\r\nif [ -z \"$PMMP_VERSION\" ] || [ \"$PMMP_VERSION\" == \"latest\" ]; then\r\n curl -sSL -o PocketMine-MP.phar https:\/\/jenkins.pmmp.io\/job\/PocketMine-MP\/Stable\/artifact\/PocketMine-MP.phar\r\nelse \r\n curl -sSL -o PocketMine-MP.phar https:\/\/jenkins.pmmp.io\/job\/PocketMine-MP\/${PMMP_VERSION}\/artifact\/PocketMine-MP.phar\r\nfi\r\n\r\necho -e \"\\n downloading latest php7.3 build from pocketmine\"\r\ncurl -sSL -o php.binary.tar.gz https:\/\/jenkins.pmmp.io\/job\/PHP-7.3-Linux-x86_64\/lastSuccessfulBuild\/artifact\/PHP_Linux-x86_64.tar.gz\r\n\r\necho -e \"\\n getting default server.properties\"\r\ncurl -sSL https:\/\/raw.githubusercontent.com\/parkervcp\/eggs\/master\/minecraft_bedrock\/pocketmine_mp\/server.properties > server.properties\r\n\r\necho -e \"\\n unpacking php7 binaries\"\r\ntar -xzvf php.binary.tar.gz\r\n\r\necho -e \"\\n removing pvp7 packages\"\r\nrm -rf \/mnt\/server\/php.binary.tar.gz\r\n\r\necho -e \"\\n creating files and folders\"\r\ntouch banned-ips.tx banned-players.txt ops.txt white-list.txt server.log\r\nmkdir -p players worlds plugins resource_packs", + "script": "#!\/bin\/ash\r\n\r\napk add --no-cache curl\r\n\r\ncd \/mnt\/server\r\n\r\necho -e \"\\n downloading pocketmine MP build ${PMMP_VERSION}\"\r\nif [ -z \"$PMMP_VERSION\" ] || [ \"$PMMP_VERSION\" == \"latest\" ]; then\r\n curl -sSL -o PocketMine-MP.phar https:\/\/jenkins.pmmp.io\/job\/PocketMine-MP\/Stable\/artifact\/PocketMine-MP.phar\r\nelse \r\n curl -sSL -o PocketMine-MP.phar https:\/\/jenkins.pmmp.io\/job\/PocketMine-MP\/${PMMP_VERSION}\/artifact\/PocketMine-MP.phar\r\nfi\r\n\r\necho -e \"\\n downloading latest php7.3 build from pocketmine\"\r\ncurl -sSL -o php.binary.tar.gz https:\/\/jenkins.pmmp.io\/job\/PHP-7.3-Linux-x86_64\/lastSuccessfulBuild\/artifact\/PHP_Linux-x86_64.tar.gz\r\n\r\necho -e \"\\n getting default server.properties\"\r\ncurl -sSL https:\/\/raw.githubusercontent.com\/parkervcp\/eggs\/master\/minecraft\/bedrock\/pocketmine_mp\/server.properties > server.properties\r\n\r\necho -e \"\\n unpacking php7 binaries\"\r\ntar -xzvf php.binary.tar.gz\r\n\r\necho -e \"\\n removing pvp7 packages\"\r\nrm -rf \/mnt\/server\/php.binary.tar.gz\r\n\r\necho -e \"\\n creating files and folders\"\r\ntouch banned-ips.tx banned-players.txt ops.txt white-list.txt server.log\r\nmkdir -p players worlds plugins resource_packs", "container": "alpine:3.10", "entrypoint": "ash" } diff --git a/minecraft_bedrock/pocketmine_mp/server.properties b/minecraft/bedrock/pocketmine_mp/server.properties similarity index 100% rename from minecraft_bedrock/pocketmine_mp/server.properties rename to minecraft/bedrock/pocketmine_mp/server.properties diff --git a/minecraft_java/README.md b/minecraft/java/README.md similarity index 100% rename from minecraft_java/README.md rename to minecraft/java/README.md diff --git a/minecraft_java/cuberite/README.md b/minecraft/java/cuberite/README.md similarity index 100% rename from minecraft_java/cuberite/README.md rename to minecraft/java/cuberite/README.md diff --git a/minecraft_java/cuberite/egg-cuberite.json b/minecraft/java/cuberite/egg-cuberite.json similarity index 100% rename from minecraft_java/cuberite/egg-cuberite.json rename to minecraft/java/cuberite/egg-cuberite.json diff --git a/minecraft_java/cuberite/settings.ini b/minecraft/java/cuberite/settings.ini similarity index 100% rename from minecraft_java/cuberite/settings.ini rename to minecraft/java/cuberite/settings.ini diff --git a/minecraft_java/cuberite/webadmin.ini b/minecraft/java/cuberite/webadmin.ini similarity index 100% rename from minecraft_java/cuberite/webadmin.ini rename to minecraft/java/cuberite/webadmin.ini diff --git a/minecraft_java/feather/README.md b/minecraft/java/feather/README.md similarity index 100% rename from minecraft_java/feather/README.md rename to minecraft/java/feather/README.md diff --git a/minecraft_java/feather/egg-feather.json b/minecraft/java/feather/egg-feather.json similarity index 100% rename from minecraft_java/feather/egg-feather.json rename to minecraft/java/feather/egg-feather.json diff --git a/minecraft_java/feather/feather.toml b/minecraft/java/feather/feather.toml similarity index 100% rename from minecraft_java/feather/feather.toml rename to minecraft/java/feather/feather.toml diff --git a/minecraft_java/forge/curseforge-generic/README.md b/minecraft/java/forge/curseforge-generic/README.md similarity index 100% rename from minecraft_java/forge/curseforge-generic/README.md rename to minecraft/java/forge/curseforge-generic/README.md diff --git a/minecraft_java/forge/curseforge-generic/egg-curseforge-generic.json b/minecraft/java/forge/curseforge-generic/egg-curseforge-generic.json similarity index 100% rename from minecraft_java/forge/curseforge-generic/egg-curseforge-generic.json rename to minecraft/java/forge/curseforge-generic/egg-curseforge-generic.json diff --git a/minecraft_java/forge/forge/README.md b/minecraft/java/forge/forge/README.md similarity index 100% rename from minecraft_java/forge/forge/README.md rename to minecraft/java/forge/forge/README.md diff --git a/minecraft_java/forge/forge/egg-forge-enhanced.json b/minecraft/java/forge/forge/egg-forge-enhanced.json similarity index 100% rename from minecraft_java/forge/forge/egg-forge-enhanced.json rename to minecraft/java/forge/forge/egg-forge-enhanced.json diff --git a/minecraft_java/ftb/feed-the-beast/egg-feed-the-beast.json b/minecraft/java/ftb/feed-the-beast/egg-feed-the-beast.json similarity index 100% rename from minecraft_java/ftb/feed-the-beast/egg-feed-the-beast.json rename to minecraft/java/ftb/feed-the-beast/egg-feed-the-beast.json diff --git a/minecraft_java/ftb/ftb-revelation/egg-f-t-b-revelation.json b/minecraft/java/ftb/ftb-revelation/egg-f-t-b-revelation.json similarity index 100% rename from minecraft_java/ftb/ftb-revelation/egg-f-t-b-revelation.json rename to minecraft/java/ftb/ftb-revelation/egg-f-t-b-revelation.json diff --git a/minecraft_java/magma/README.md b/minecraft/java/magma/README.md similarity index 100% rename from minecraft_java/magma/README.md rename to minecraft/java/magma/README.md diff --git a/minecraft_java/magma/egg-magma.json b/minecraft/java/magma/egg-magma.json similarity index 100% rename from minecraft_java/magma/egg-magma.json rename to minecraft/java/magma/egg-magma.json diff --git a/minecraft_java/paper/README.MD b/minecraft/java/paper/README.MD similarity index 100% rename from minecraft_java/paper/README.MD rename to minecraft/java/paper/README.MD diff --git a/minecraft_java/paper/egg-paper.json b/minecraft/java/paper/egg-paper.json similarity index 99% rename from minecraft_java/paper/egg-paper.json rename to minecraft/java/paper/egg-paper.json index 60fde38e..af3ab32d 100644 --- a/minecraft_java/paper/egg-paper.json +++ b/minecraft/java/paper/egg-paper.json @@ -17,7 +17,7 @@ }, "scripts": { "installation": { - "script": "#!\/bin\/ash\r\n# Paper Installation Script\r\n#\r\n# Server Files: \/mnt\/server\r\napk add --no-cache --update curl jq\r\n\r\nif [ -n \"${DL_PATH}\" ]; then\r\n echo -e \"using supplied download url\"\r\n DOWNLOAD_URL=`eval echo $(echo ${DL_PATH} | sed -e 's\/{{\/${\/g' -e 's\/}}\/}\/g')`\r\nelse\r\n VER_EXISTS=`curl -s https:\/\/papermc.io\/api\/v1\/paper | jq -r --arg VERSION $MINECRAFT_VERSION '.versions[] | IN($VERSION)' | grep true`\r\n LATEST_PAPER_VERSION=`curl -s https:\/\/papermc.io\/api\/v1\/paper | jq -r '.versions' | jq -r '.[0]'`\r\n \r\n if [ \"${VER_EXISTS}\" == \"true\" ]; then\r\n echo -e \"Version is valid. Using version ${MINECRAFT_VERSION}\"\r\n else\r\n echo -e \"Using the latest paper version\"\r\n MINECRAFT_VERSION=${LATEST_PAPER_VERSION}\r\n fi\r\n \r\n BUILD_EXISTS=`curl -s https:\/\/papermc.io\/api\/v1\/paper\/${MINECRAFT_VERSION} | jq -r --arg BUILD ${BUILD_NUMBER} '.builds.all[] | IN($BUILD)' | grep true`\r\n LATEST_PAPER_BUILD=`curl -s https:\/\/papermc.io\/api\/v1\/paper\/${MINECRAFT_VERSION} | jq -r '.builds.latest'`\r\n \r\n if [ \"${BUILD_EXISTS}\" == \"true\" ] || [ ${BUILD_NUMBER} == \"latest\" ]; then\r\n echo -e \"Build is valid. Using version ${BUILD_NUMBER}\"\r\n else\r\n echo -e \"Using the latest paper build\"\r\n BUILD_NUMBER=${LATEST_PAPER_BUILD}\r\n fi\r\n \r\n echo \"Version being downloaded\"\r\n echo -e \"MC Version: ${MINECRAFT_VERSION}\"\r\n echo -e \"Build: ${BUILD_NUMBER}\"\r\n DOWNLOAD_URL=https:\/\/papermc.io\/api\/v1\/paper\/${MINECRAFT_VERSION}\/${BUILD_NUMBER}\/download \r\nfi\r\n\r\ncd \/mnt\/server\r\n\r\necho -e \"running curl -o ${SERVER_JARFILE} ${DOWNLOAD_URL}\"\r\n\r\nif [ -f ${SERVER_JARFILE} ]; then\r\n mv ${SERVER_JARFILE} ${SERVER_JARFILE}.old\r\nfi\r\n\r\ncurl -o ${SERVER_JARFILE} ${DOWNLOAD_URL}\r\n\r\nif [ ! -f server.properties ]; then\r\n echo -e \"Downloading MC server.properties\"\r\n curl -o server.properties https:\/\/raw.githubusercontent.com\/parkervcp\/eggs\/master\/minecraft_java\/server.properties\r\nfi", + "script": "#!\/bin\/ash\r\n# Paper Installation Script\r\n#\r\n# Server Files: \/mnt\/server\r\napk add --no-cache --update curl jq\r\n\r\nif [ -n \"${DL_PATH}\" ]; then\r\n echo -e \"using supplied download url\"\r\n DOWNLOAD_URL=`eval echo $(echo ${DL_PATH} | sed -e 's\/{{\/${\/g' -e 's\/}}\/}\/g')`\r\nelse\r\n VER_EXISTS=`curl -s https:\/\/papermc.io\/api\/v1\/paper | jq -r --arg VERSION $MINECRAFT_VERSION '.versions[] | IN($VERSION)' | grep true`\r\n LATEST_PAPER_VERSION=`curl -s https:\/\/papermc.io\/api\/v1\/paper | jq -r '.versions' | jq -r '.[0]'`\r\n \r\n if [ \"${VER_EXISTS}\" == \"true\" ]; then\r\n echo -e \"Version is valid. Using version ${MINECRAFT_VERSION}\"\r\n else\r\n echo -e \"Using the latest paper version\"\r\n MINECRAFT_VERSION=${LATEST_PAPER_VERSION}\r\n fi\r\n \r\n BUILD_EXISTS=`curl -s https:\/\/papermc.io\/api\/v1\/paper\/${MINECRAFT_VERSION} | jq -r --arg BUILD ${BUILD_NUMBER} '.builds.all[] | IN($BUILD)' | grep true`\r\n LATEST_PAPER_BUILD=`curl -s https:\/\/papermc.io\/api\/v1\/paper\/${MINECRAFT_VERSION} | jq -r '.builds.latest'`\r\n \r\n if [ \"${BUILD_EXISTS}\" == \"true\" ] || [ ${BUILD_NUMBER} == \"latest\" ]; then\r\n echo -e \"Build is valid. Using version ${BUILD_NUMBER}\"\r\n else\r\n echo -e \"Using the latest paper build\"\r\n BUILD_NUMBER=${LATEST_PAPER_BUILD}\r\n fi\r\n \r\n echo \"Version being downloaded\"\r\n echo -e \"MC Version: ${MINECRAFT_VERSION}\"\r\n echo -e \"Build: ${BUILD_NUMBER}\"\r\n DOWNLOAD_URL=https:\/\/papermc.io\/api\/v1\/paper\/${MINECRAFT_VERSION}\/${BUILD_NUMBER}\/download \r\nfi\r\n\r\ncd \/mnt\/server\r\n\r\necho -e \"running curl -o ${SERVER_JARFILE} ${DOWNLOAD_URL}\"\r\n\r\nif [ -f ${SERVER_JARFILE} ]; then\r\n mv ${SERVER_JARFILE} ${SERVER_JARFILE}.old\r\nfi\r\n\r\ncurl -o ${SERVER_JARFILE} ${DOWNLOAD_URL}\r\n\r\nif [ ! -f server.properties ]; then\r\n echo -e \"Downloading MC server.properties\"\r\n curl -o server.properties https:\/\/raw.githubusercontent.com\/parkervcp\/eggs\/master\/minecraft\/java\/server.properties\r\nfi", "container": "alpine:3.9", "entrypoint": "ash" } diff --git a/minecraft_java/server.properties b/minecraft/java/server.properties similarity index 100% rename from minecraft_java/server.properties rename to minecraft/java/server.properties diff --git a/minecraft_java/spigot/README.MD b/minecraft/java/spigot/README.MD similarity index 100% rename from minecraft_java/spigot/README.MD rename to minecraft/java/spigot/README.MD diff --git a/minecraft_java/spigot/egg-spigot.json b/minecraft/java/spigot/egg-spigot.json similarity index 100% rename from minecraft_java/spigot/egg-spigot.json rename to minecraft/java/spigot/egg-spigot.json diff --git a/minecraft_java/spongeforge/README.MD b/minecraft/java/spongeforge/README.MD similarity index 100% rename from minecraft_java/spongeforge/README.MD rename to minecraft/java/spongeforge/README.MD diff --git a/minecraft_java/spongeforge/egg-sponge-forge.json b/minecraft/java/spongeforge/egg-sponge-forge.json similarity index 98% rename from minecraft_java/spongeforge/egg-sponge-forge.json rename to minecraft/java/spongeforge/egg-sponge-forge.json index 76fa3a1f..91c1d828 100644 --- a/minecraft_java/spongeforge/egg-sponge-forge.json +++ b/minecraft/java/spongeforge/egg-sponge-forge.json @@ -17,7 +17,7 @@ }, "scripts": { "installation": { - "script": "#!\/bin\/bash\r\n# SpongeForge Installation Script\r\n#\r\n# Server Files: \/mnt\/server\r\napt update\r\napt install -y jq curl\r\n\r\nmkdir -p \/mnt\/server\r\ncd \/mnt\/server\r\n\r\n#Adding .jar when not eding by SERVER_JARFILE\r\nif [[ ! ${SERVER_JARFILE} = *\\.jar ]]; then\r\n SERVER_JARFILE=\"${SERVER_JARFILE}.jar\"\r\nfi\r\n\r\n\r\nif [ -z ${SF_VERSION} ] || [ \"$(curl -s https:\/\/dl-api.spongepowered.org\/v1\/org.spongepowered\/spongeforge\/downloads\/${SF_VERSION})\" == \"Unknown version\" ]; then\r\n echo -e \"defaulting to recommended\"\r\n SF_VERSION=\"recommended\"\r\nfi\r\n\r\nif [ \"${SF_VERSION}\" == \"recommended\" ]; then\r\n echo -e \"using recommended SpongeForge version\"\r\n SF_VERSION=$(curl -s https:\/\/dl-api.spongepowered.org\/v1\/org.spongepowered\/spongeforge\/downloads\/recommended | jq -r '.version')\r\n echo -e \"found SpongeForge Version ${SF_VERSION}\"\r\n SF_DL_LINK=$(curl -s https:\/\/dl-api.spongepowered.org\/v1\/org.spongepowered\/spongeforge\/downloads\/recommended | jq -r '.artifacts.\"\".url')\r\n FORGE_DOWNLOAD_VERSION=$(curl -s https:\/\/dl-api.spongepowered.org\/v1\/org.spongepowered\/spongeforge\/downloads\/recommended | jq -r '.dependencies.forge')\r\n echo -e \"found Forge Version ${FORGE_DOWNLOAD_VERSION}\"\r\n MC_VERSION=$(curl -s https:\/\/dl-api.spongepowered.org\/v1\/org.spongepowered\/spongeforge\/downloads\/${SF_VERSION} | jq -r '.dependencies.minecraft')\r\nelif [ \"${SF_VERSION}\" == \"latest\" ]; then\r\n echo -e \"using latest SpongForge version\"\r\n SF_VERSION=$(curl -s https:\/\/dl-api.spongepowered.org\/v1\/org.spongepowered\/spongeforge | jq -r '.buildTypes.stable.latest.version')\r\n echo -e \"found SpongeForge Version ${SF_VERSION}\"\r\n SF_DL_LINK=$(curl -s https:\/\/dl-api.spongepowered.org\/v1\/org.spongepowered\/spongeforge\/downloads\/${SF_VERSION} | jq -r '.artifacts.\"\".url')\r\n FORGE_DOWNLOAD_VERSION=$(curl -s https:\/\/dl-api.spongepowered.org\/v1\/org.spongepowered\/spongeforge\/downloads\/${SF_VERSION} | jq -r '.dependencies.forge')\r\n MC_VERSION=$(curl -s https:\/\/dl-api.spongepowered.org\/v1\/org.spongepowered\/spongeforge\/downloads\/${SF_VERSION} | jq -r '.dependencies.minecraft')\r\nelse\r\n echo -e \"found SpongeForge Version ${SF_VERSION}\"\r\n SF_DL_LINK=$(curl -s https:\/\/dl-api.spongepowered.org\/v1\/org.spongepowered\/spongeforge\/downloads\/${SF_VERSION} | jq -r '.artifacts.\"\".url')\r\n FORGE_DOWNLOAD_VERSION=$(curl -s https:\/\/dl-api.spongepowered.org\/v1\/org.spongepowered\/spongeforge\/downloads\/${SF_VERSION} | jq -r '.dependencies.forge')\r\n echo -e \"found Forge Version ${FORGE_DOWNLOAD_VERSION}\"\r\n MC_VERSION=$(curl -s https:\/\/dl-api.spongepowered.org\/v1\/org.spongepowered\/spongeforge\/downloads\/${SF_VERSION} | jq -r '.dependencies.minecraft')\r\nfi\r\n\r\nFORGE_DL_LINK=https:\/\/files.minecraftforge.net\/maven\/net\/minecraftforge\/forge\/${MC_VERSION}-${FORGE_DOWNLOAD_VERSION}\/forge-${MC_VERSION}-${FORGE_DOWNLOAD_VERSION}\r\n\r\nif [ -f server.jar ] && [ $(sha1sum server.jar | awk '{ print $1 }') == $(curl -s ${FORGE_DL_LINK}-universal.jar.sha1) ]; then\r\n echo -e \"Already have the correct forge version\"\r\nelse\r\n echo -e \"Downloading forge version ${FORGE_VERSION}\"\r\n echo -e \"running: curl -s -o installer.jar -o ${FORGE_DL_LINK}-installer.jar\"\r\n curl -s -o installer.jar ${FORGE_DL_LINK}-installer.jar\r\n echo -e \"running: curl -s -o ${SERVER_JARFILE} -o ${FORGE_DL_LINK}-universal.jar\"\r\n curl -s -o ${SERVER_JARFILE} ${FORGE_DL_LINK}-universal.jar\r\n java -jar installer.jar --installServer\r\n rm installer.jar forge-${MC_VERSION}-${FORGE_DOWNLOAD_VERSION}-universal.jar\r\nfi\r\n\r\nif [ ! -d \/mnt\/server\/mods\/ ]; then\r\n echo -e \"making mods directory\"\r\n mkdir -p \/mnt\/server\/mods\/\r\nfi\r\n\r\nif [ -f \/mnt\/server\/mods\/spongeforge*.jar ]; then\r\n mkdir -p \/mnt\/server\/mods\/old\/\r\n mv -f \/mnt\/server\/mods\/spongeforge*.jar \/mnt\/server\/mods\/old\/spongeforge*.jar\r\nfi \r\n\r\necho -e \"running: curl -s ${SF_DL_LINK} -o \/mnt\/server\/mods\/spongeforge-${SF_VERSION}.jar\"\r\ncurl -s ${SF_DL_LINK} -o \/mnt\/server\/mods\/spongeforge-${SF_VERSION}.jar\r\n\r\nif [ ! -f server.properties ]; then\r\n echo -e \"Downloading MC server.properties\"\r\n curl -o server.properties https:\/\/raw.githubusercontent.com\/parkervcp\/eggs\/master\/minecraft_java\/server.properties\r\nfi\r\n\r\necho -e \"Install for SpongeForge is complete\"", + "script": "#!\/bin\/bash\r\n# SpongeForge Installation Script\r\n#\r\n# Server Files: \/mnt\/server\r\napt update\r\napt install -y jq curl\r\n\r\nmkdir -p \/mnt\/server\r\ncd \/mnt\/server\r\n\r\n#Adding .jar when not eding by SERVER_JARFILE\r\nif [[ ! ${SERVER_JARFILE} = *\\.jar ]]; then\r\n SERVER_JARFILE=\"${SERVER_JARFILE}.jar\"\r\nfi\r\n\r\n\r\nif [ -z ${SF_VERSION} ] || [ \"$(curl -s https:\/\/dl-api.spongepowered.org\/v1\/org.spongepowered\/spongeforge\/downloads\/${SF_VERSION})\" == \"Unknown version\" ]; then\r\n echo -e \"defaulting to recommended\"\r\n SF_VERSION=\"recommended\"\r\nfi\r\n\r\nif [ \"${SF_VERSION}\" == \"recommended\" ]; then\r\n echo -e \"using recommended SpongeForge version\"\r\n SF_VERSION=$(curl -s https:\/\/dl-api.spongepowered.org\/v1\/org.spongepowered\/spongeforge\/downloads\/recommended | jq -r '.version')\r\n echo -e \"found SpongeForge Version ${SF_VERSION}\"\r\n SF_DL_LINK=$(curl -s https:\/\/dl-api.spongepowered.org\/v1\/org.spongepowered\/spongeforge\/downloads\/recommended | jq -r '.artifacts.\"\".url')\r\n FORGE_DOWNLOAD_VERSION=$(curl -s https:\/\/dl-api.spongepowered.org\/v1\/org.spongepowered\/spongeforge\/downloads\/recommended | jq -r '.dependencies.forge')\r\n echo -e \"found Forge Version ${FORGE_DOWNLOAD_VERSION}\"\r\n MC_VERSION=$(curl -s https:\/\/dl-api.spongepowered.org\/v1\/org.spongepowered\/spongeforge\/downloads\/${SF_VERSION} | jq -r '.dependencies.minecraft')\r\nelif [ \"${SF_VERSION}\" == \"latest\" ]; then\r\n echo -e \"using latest SpongForge version\"\r\n SF_VERSION=$(curl -s https:\/\/dl-api.spongepowered.org\/v1\/org.spongepowered\/spongeforge | jq -r '.buildTypes.stable.latest.version')\r\n echo -e \"found SpongeForge Version ${SF_VERSION}\"\r\n SF_DL_LINK=$(curl -s https:\/\/dl-api.spongepowered.org\/v1\/org.spongepowered\/spongeforge\/downloads\/${SF_VERSION} | jq -r '.artifacts.\"\".url')\r\n FORGE_DOWNLOAD_VERSION=$(curl -s https:\/\/dl-api.spongepowered.org\/v1\/org.spongepowered\/spongeforge\/downloads\/${SF_VERSION} | jq -r '.dependencies.forge')\r\n MC_VERSION=$(curl -s https:\/\/dl-api.spongepowered.org\/v1\/org.spongepowered\/spongeforge\/downloads\/${SF_VERSION} | jq -r '.dependencies.minecraft')\r\nelse\r\n echo -e \"found SpongeForge Version ${SF_VERSION}\"\r\n SF_DL_LINK=$(curl -s https:\/\/dl-api.spongepowered.org\/v1\/org.spongepowered\/spongeforge\/downloads\/${SF_VERSION} | jq -r '.artifacts.\"\".url')\r\n FORGE_DOWNLOAD_VERSION=$(curl -s https:\/\/dl-api.spongepowered.org\/v1\/org.spongepowered\/spongeforge\/downloads\/${SF_VERSION} | jq -r '.dependencies.forge')\r\n echo -e \"found Forge Version ${FORGE_DOWNLOAD_VERSION}\"\r\n MC_VERSION=$(curl -s https:\/\/dl-api.spongepowered.org\/v1\/org.spongepowered\/spongeforge\/downloads\/${SF_VERSION} | jq -r '.dependencies.minecraft')\r\nfi\r\n\r\nFORGE_DL_LINK=https:\/\/files.minecraftforge.net\/maven\/net\/minecraftforge\/forge\/${MC_VERSION}-${FORGE_DOWNLOAD_VERSION}\/forge-${MC_VERSION}-${FORGE_DOWNLOAD_VERSION}\r\n\r\nif [ -f server.jar ] && [ $(sha1sum server.jar | awk '{ print $1 }') == $(curl -s ${FORGE_DL_LINK}-universal.jar.sha1) ]; then\r\n echo -e \"Already have the correct forge version\"\r\nelse\r\n echo -e \"Downloading forge version ${FORGE_VERSION}\"\r\n echo -e \"running: curl -s -o installer.jar -o ${FORGE_DL_LINK}-installer.jar\"\r\n curl -s -o installer.jar ${FORGE_DL_LINK}-installer.jar\r\n echo -e \"running: curl -s -o ${SERVER_JARFILE} -o ${FORGE_DL_LINK}-universal.jar\"\r\n curl -s -o ${SERVER_JARFILE} ${FORGE_DL_LINK}-universal.jar\r\n java -jar installer.jar --installServer\r\n rm installer.jar forge-${MC_VERSION}-${FORGE_DOWNLOAD_VERSION}-universal.jar\r\nfi\r\n\r\nif [ ! -d \/mnt\/server\/mods\/ ]; then\r\n echo -e \"making mods directory\"\r\n mkdir -p \/mnt\/server\/mods\/\r\nfi\r\n\r\nif [ -f \/mnt\/server\/mods\/spongeforge*.jar ]; then\r\n mkdir -p \/mnt\/server\/mods\/old\/\r\n mv -f \/mnt\/server\/mods\/spongeforge*.jar \/mnt\/server\/mods\/old\/spongeforge*.jar\r\nfi \r\n\r\necho -e \"running: curl -s ${SF_DL_LINK} -o \/mnt\/server\/mods\/spongeforge-${SF_VERSION}.jar\"\r\ncurl -s ${SF_DL_LINK} -o \/mnt\/server\/mods\/spongeforge-${SF_VERSION}.jar\r\n\r\nif [ ! -f server.properties ]; then\r\n echo -e \"Downloading MC server.properties\"\r\n curl -o server.properties https:\/\/raw.githubusercontent.com\/parkervcp\/eggs\/master\/minecraft\/java\/server.properties\r\nfi\r\n\r\necho -e \"Install for SpongeForge is complete\"", "container": "openjdk:8-jre-slim", "entrypoint": "bash" } diff --git a/minecraft_java/spongevanilla/README.MD b/minecraft/java/spongevanilla/README.MD similarity index 100% rename from minecraft_java/spongevanilla/README.MD rename to minecraft/java/spongevanilla/README.MD diff --git a/minecraft_java/spongevanilla/egg-sponge-vanilla.json b/minecraft/java/spongevanilla/egg-sponge-vanilla.json similarity index 97% rename from minecraft_java/spongevanilla/egg-sponge-vanilla.json rename to minecraft/java/spongevanilla/egg-sponge-vanilla.json index 3b129848..64b4e9dc 100644 --- a/minecraft_java/spongevanilla/egg-sponge-vanilla.json +++ b/minecraft/java/spongevanilla/egg-sponge-vanilla.json @@ -17,7 +17,7 @@ }, "scripts": { "installation": { - "script": "#!\/bin\/bash\r\n# spongeVanilla Installation Script\r\n#\r\n# Server Files: \/mnt\/server\r\napt update\r\napt install -y jq curl\r\n\r\nmkdir -p \/mnt\/server\r\ncd \/mnt\/server\r\n\r\n#Adding .jar when not eding by SERVER_JARFILE\r\nif [[ ! ${SERVER_JARFILE} = *\\.jar ]]; then\r\n SERVER_JARFILE=\"${SERVER_JARFILE}.jar\"\r\nfi\r\n\r\n## check spongevanilla version and default to recommended if it's invalid\r\nif [ -z ${SV_VERSION} ] || [ \"$(curl -s https:\/\/dl-api.spongepowered.org\/v1\/org.spongepowered\/spongevanilla\/downloads\/${SV_VERSION})\" == \"Unknown version\" ]; then\r\n echo -e \"defaulting to recommended\"\r\n SV_VERSION=\"recommended\"\r\nfi\r\n\r\n## handle getting download linsk for sponge\r\nif [ \"${SV_VERSION}\" == \"recommended\" ]; then\r\n echo -e \"using recommended spongevanilla version\"\r\n SV_VERSION=$(curl -s https:\/\/dl-api.spongepowered.org\/v1\/org.spongepowered\/spongevanilla\/downloads\/recommended | jq -r '.version')\r\n echo -e \"found spongevanilla Version ${SV_VERSION}\"\r\n SV_DL_LINK=$(curl -s https:\/\/dl-api.spongepowered.org\/v1\/org.spongepowered\/spongevanilla\/downloads\/recommended | jq -r '.artifacts.\"\".url')\r\nelif [ \"${SV_VERSION}\" == \"latest\" ]; then\r\n echo -e \"using latest SpongForge version\"\r\n SV_VERSION=$(curl -s https:\/\/dl-api.spongepowered.org\/v1\/org.spongepowered\/spongevanilla | jq -r '.buildTypes.stable.latest.version')\r\n echo -e \"found spongevanilla Version ${SV_VERSION}\"\r\nelse\r\n echo -e \"found spongevanilla Version ${SV_VERSION}\"\r\n SV_DL_LINK=$(curl -s https:\/\/dl-api.spongepowered.org\/v1\/org.spongepowered\/spongevanilla\/downloads\/${SV_VERSION} | jq -r '.artifacts.\"\".url')\r\nfi\r\n\r\nif [ -f ${SERVER_JARFILE} ] && [ $(sha1sum server.jar | awk '{ print $1 }') == $(curl -s https:\/\/dl-api.spongepowered.org\/v1\/org.spongepowered\/spongevanilla\/downloads\/recommended | jq -r '.artifacts.\"\".sha1') ]; then\r\n echo -e \"Already have the correct spongevanilla version\"\r\nelse\r\n echo -e \"Downloading spongevanilla version ${SV_VERSION}\"\r\n echo -e \"running: curl -s ${SV_DL_LINK} -o \/mnt\/server\/mods\/spongevanilla-${SV_VERSION}.jar\"\r\n curl -s ${SV_DL_LINK} -o \/mnt\/server\/${SERVER_JARFILE}\r\nfi\r\n\r\nif [ ! -f server.properties ]; then\r\n echo -e \"Downloading MC server.properties\"\r\n curl -s -o server.properties https:\/\/raw.githubusercontent.com\/parkervcp\/eggs\/master\/minecraft_java\/server.properties\r\nfi\r\n\r\necho -e \"Install for spongevanilla is complete\"", + "script": "#!\/bin\/bash\r\n# spongeVanilla Installation Script\r\n#\r\n# Server Files: \/mnt\/server\r\napt update\r\napt install -y jq curl\r\n\r\nmkdir -p \/mnt\/server\r\ncd \/mnt\/server\r\n\r\n#Adding .jar when not eding by SERVER_JARFILE\r\nif [[ ! ${SERVER_JARFILE} = *\\.jar ]]; then\r\n SERVER_JARFILE=\"${SERVER_JARFILE}.jar\"\r\nfi\r\n\r\n## check spongevanilla version and default to recommended if it's invalid\r\nif [ -z ${SV_VERSION} ] || [ \"$(curl -s https:\/\/dl-api.spongepowered.org\/v1\/org.spongepowered\/spongevanilla\/downloads\/${SV_VERSION})\" == \"Unknown version\" ]; then\r\n echo -e \"defaulting to recommended\"\r\n SV_VERSION=\"recommended\"\r\nfi\r\n\r\n## handle getting download linsk for sponge\r\nif [ \"${SV_VERSION}\" == \"recommended\" ]; then\r\n echo -e \"using recommended spongevanilla version\"\r\n SV_VERSION=$(curl -s https:\/\/dl-api.spongepowered.org\/v1\/org.spongepowered\/spongevanilla\/downloads\/recommended | jq -r '.version')\r\n echo -e \"found spongevanilla Version ${SV_VERSION}\"\r\n SV_DL_LINK=$(curl -s https:\/\/dl-api.spongepowered.org\/v1\/org.spongepowered\/spongevanilla\/downloads\/recommended | jq -r '.artifacts.\"\".url')\r\nelif [ \"${SV_VERSION}\" == \"latest\" ]; then\r\n echo -e \"using latest SpongForge version\"\r\n SV_VERSION=$(curl -s https:\/\/dl-api.spongepowered.org\/v1\/org.spongepowered\/spongevanilla | jq -r '.buildTypes.stable.latest.version')\r\n echo -e \"found spongevanilla Version ${SV_VERSION}\"\r\nelse\r\n echo -e \"found spongevanilla Version ${SV_VERSION}\"\r\n SV_DL_LINK=$(curl -s https:\/\/dl-api.spongepowered.org\/v1\/org.spongepowered\/spongevanilla\/downloads\/${SV_VERSION} | jq -r '.artifacts.\"\".url')\r\nfi\r\n\r\nif [ -f ${SERVER_JARFILE} ] && [ $(sha1sum server.jar | awk '{ print $1 }') == $(curl -s https:\/\/dl-api.spongepowered.org\/v1\/org.spongepowered\/spongevanilla\/downloads\/recommended | jq -r '.artifacts.\"\".sha1') ]; then\r\n echo -e \"Already have the correct spongevanilla version\"\r\nelse\r\n echo -e \"Downloading spongevanilla version ${SV_VERSION}\"\r\n echo -e \"running: curl -s ${SV_DL_LINK} -o \/mnt\/server\/mods\/spongevanilla-${SV_VERSION}.jar\"\r\n curl -s ${SV_DL_LINK} -o \/mnt\/server\/${SERVER_JARFILE}\r\nfi\r\n\r\nif [ ! -f server.properties ]; then\r\n echo -e \"Downloading MC server.properties\"\r\n curl -s -o server.properties https:\/\/raw.githubusercontent.com\/parkervcp\/eggs\/master\/minecraft\/java\/server.properties\r\nfi\r\n\r\necho -e \"Install for spongevanilla is complete\"", "container": "debian:stable-slim", "entrypoint": "bash" } diff --git a/minecraft_java/technic/README.md b/minecraft/java/technic/README.md similarity index 72% rename from minecraft_java/technic/README.md rename to minecraft/java/technic/README.md index 4f2e1e57..7ee8f5a4 100644 --- a/minecraft_java/technic/README.md +++ b/minecraft/java/technic/README.md @@ -15,8 +15,8 @@ If you are reading this it looks like you are looking to add an egg to your serv ## Technic Eggs -[Technic](/minecraft_java/technic/) -* [Blightfall](/minecraft_java/technic/blightfall/) -* [Hexxit](/minecraft_java/technic/hexxit/) -* [Tekkit Legends](/minecraft_java/technic/tekkit-legends/) -* [Attack of the B-Team](/minecraft_java/technic/attack-of-the-bteam/) +[Technic](/minecraft/java/technic/) +* [Blightfall](/minecraft/java/technic/blightfall/) +* [Hexxit](/minecraft/java/technic/hexxit/) +* [Tekkit Legends](/minecraft/java/technic/tekkit-legends/) +* [Attack of the B-Team](/minecraft/java/technic/attack-of-the-bteam/) diff --git a/minecraft_java/technic/attack-of-the-bteam/README.MD b/minecraft/java/technic/attack-of-the-bteam/README.MD similarity index 100% rename from minecraft_java/technic/attack-of-the-bteam/README.MD rename to minecraft/java/technic/attack-of-the-bteam/README.MD diff --git a/minecraft_java/technic/attack-of-the-bteam/egg-attack-of-the-b--team.json b/minecraft/java/technic/attack-of-the-bteam/egg-attack-of-the-b--team.json similarity index 100% rename from minecraft_java/technic/attack-of-the-bteam/egg-attack-of-the-b--team.json rename to minecraft/java/technic/attack-of-the-bteam/egg-attack-of-the-b--team.json diff --git a/minecraft_java/technic/blightfall/egg-blightfall.json b/minecraft/java/technic/blightfall/egg-blightfall.json similarity index 100% rename from minecraft_java/technic/blightfall/egg-blightfall.json rename to minecraft/java/technic/blightfall/egg-blightfall.json diff --git a/minecraft_java/technic/hexxit/egg-hexxit.json b/minecraft/java/technic/hexxit/egg-hexxit.json similarity index 100% rename from minecraft_java/technic/hexxit/egg-hexxit.json rename to minecraft/java/technic/hexxit/egg-hexxit.json diff --git a/minecraft_java/technic/tekkit-legends/egg-tekkit-legends.json b/minecraft/java/technic/tekkit-legends/egg-tekkit-legends.json similarity index 100% rename from minecraft_java/technic/tekkit-legends/egg-tekkit-legends.json rename to minecraft/java/technic/tekkit-legends/egg-tekkit-legends.json diff --git a/minecraft_java/tuinity/.gitignore b/minecraft/java/tuinity/.gitignore similarity index 100% rename from minecraft_java/tuinity/.gitignore rename to minecraft/java/tuinity/.gitignore diff --git a/minecraft_java/tuinity/egg-tuinity.json b/minecraft/java/tuinity/egg-tuinity.json similarity index 88% rename from minecraft_java/tuinity/egg-tuinity.json rename to minecraft/java/tuinity/egg-tuinity.json index d18404cb..9bf94c40 100644 --- a/minecraft_java/tuinity/egg-tuinity.json +++ b/minecraft/java/tuinity/egg-tuinity.json @@ -17,7 +17,7 @@ }, "scripts": { "installation": { - "script": "#!\/bin\/bash\r\n# Tuinity Installation Script\r\n#\r\n# Server Files: \/mnt\/server\r\n\r\napt update\r\napt -y install curl\r\ncd \/mnt\/server\r\n\r\nif [ ! -f server.properties ]; then\r\ncurl -o server.properties https:\/\/raw.githubusercontent.com\/parkervcp\/eggs\/master\/minecraft_java\/server.properties\r\nfi\r\n\r\ncurl -o ${SERVER_JARFILE} https:\/\/ci.codemc.io\/job\/Spottedleaf\/job\/Tuinity\/lastStableBuild\/artifact\/tuinity-paperclip.jar", + "script": "#!\/bin\/bash\r\n# Tuinity Installation Script\r\n#\r\n# Server Files: \/mnt\/server\r\n\r\napt update\r\napt -y install curl\r\ncd \/mnt\/server\r\n\r\nif [ ! -f server.properties ]; then\r\ncurl -o server.properties https:\/\/raw.githubusercontent.com\/parkervcp\/eggs\/master\/minecraft\/java\/server.properties\r\nfi\r\n\r\ncurl -o ${SERVER_JARFILE} https:\/\/ci.codemc.io\/job\/Spottedleaf\/job\/Tuinity\/lastStableBuild\/artifact\/tuinity-paperclip.jar", "container": "debian:buster-slim", "entrypoint": "bash" } diff --git a/minecraft_java/vanillacord/README.md b/minecraft/java/vanillacord/README.md similarity index 100% rename from minecraft_java/vanillacord/README.md rename to minecraft/java/vanillacord/README.md diff --git a/minecraft_java/vanillacord/egg-vanilla-cord.json b/minecraft/java/vanillacord/egg-vanilla-cord.json similarity index 100% rename from minecraft_java/vanillacord/egg-vanilla-cord.json rename to minecraft/java/vanillacord/egg-vanilla-cord.json diff --git a/minecraft_proxy/typhoonlimbo/README.md b/minecraft/proxy/typhoonlimbo/README.md similarity index 100% rename from minecraft_proxy/typhoonlimbo/README.md rename to minecraft/proxy/typhoonlimbo/README.md diff --git a/minecraft_proxy/typhoonlimbo/egg-typhoon-limbo.json b/minecraft/proxy/typhoonlimbo/egg-typhoon-limbo.json similarity index 100% rename from minecraft_proxy/typhoonlimbo/egg-typhoon-limbo.json rename to minecraft/proxy/typhoonlimbo/egg-typhoon-limbo.json diff --git a/minecraft_proxy/velocity/README.md b/minecraft/proxy/velocity/README.md similarity index 100% rename from minecraft_proxy/velocity/README.md rename to minecraft/proxy/velocity/README.md diff --git a/minecraft_proxy/velocity/egg-velocity.json b/minecraft/proxy/velocity/egg-velocity.json similarity index 96% rename from minecraft_proxy/velocity/egg-velocity.json rename to minecraft/proxy/velocity/egg-velocity.json index 7bfb6a83..7cfc2206 100644 --- a/minecraft_proxy/velocity/egg-velocity.json +++ b/minecraft/proxy/velocity/egg-velocity.json @@ -17,7 +17,7 @@ }, "scripts": { "installation": { - "script": "#!\/bin\/ash\r\n# Velocity Proxy Installation Script\r\n#\r\n# Server Files: \/mnt\/server\r\n\r\napk add --no-cache curl\r\n\r\nmkdir -p \/mnt\/server\/\r\n\r\ncd \/mnt\/server\/\r\n\r\nif [ -z ${VELOCITY_VERSION} ] || [ ${VELOCITY_VERSION} == \"latest\" ]; then\r\n\tVELOCITY_VERSION=\/lastStableBuild\r\nfi\r\n\r\necho -e \"Getting download link\"\r\nDOWNLOAD_ENDPOINT=$(curl https:\/\/ci.velocitypowered.com\/job\/velocity\/${VELOCITY_VERSION}\/ | grep -Eo 'href=\"[^\\\"]+\"' | grep -vE \"view|fingerprint\" | grep \".jar\" | sed -n 's\/.*href=\"\\([^\"]*\\).*\/\\1\/p')\r\nDOWNLOAD_LINK=https:\/\/ci.velocitypowered.com\/job\/velocity\/lastStableBuild\/${DOWNLOAD_ENDPOINT}\r\n\r\necho -e \"Downloading ${DOWNLOAD_LINK}\"\r\ncurl ${DOWNLOAD_LINK} -o ${SERVER_JARFILE}\r\n\r\nif [ -f velocity.toml ]; then\r\n echo -e \"velocity config file exists\"\r\nelse\r\n echo -e \"downloading velocity config file.\"\r\n curl https:\/\/raw.githubusercontent.com\/parkervcp\/eggs\/master\/minecraft_proxy\/velocity\/velocity.toml -o velocity.toml\r\nfi\r\n\r\necho -e \"install complete\"", + "script": "#!\/bin\/ash\r\n# Velocity Proxy Installation Script\r\n#\r\n# Server Files: \/mnt\/server\r\n\r\napk add --no-cache curl\r\n\r\nmkdir -p \/mnt\/server\/\r\n\r\ncd \/mnt\/server\/\r\n\r\nif [ -z ${VELOCITY_VERSION} ] || [ ${VELOCITY_VERSION} == \"latest\" ]; then\r\n\tVELOCITY_VERSION=\/lastStableBuild\r\nfi\r\n\r\necho -e \"Getting download link\"\r\nDOWNLOAD_ENDPOINT=$(curl https:\/\/ci.velocitypowered.com\/job\/velocity\/${VELOCITY_VERSION}\/ | grep -Eo 'href=\"[^\\\"]+\"' | grep -vE \"view|fingerprint\" | grep \".jar\" | sed -n 's\/.*href=\"\\([^\"]*\\).*\/\\1\/p')\r\nDOWNLOAD_LINK=https:\/\/ci.velocitypowered.com\/job\/velocity\/lastStableBuild\/${DOWNLOAD_ENDPOINT}\r\n\r\necho -e \"Downloading ${DOWNLOAD_LINK}\"\r\ncurl ${DOWNLOAD_LINK} -o ${SERVER_JARFILE}\r\n\r\nif [ -f velocity.toml ]; then\r\n echo -e \"velocity config file exists\"\r\nelse\r\n echo -e \"downloading velocity config file.\"\r\n curl https:\/\/raw.githubusercontent.com\/parkervcp\/eggs\/master\/minecraft\/proxy\/velocity\/velocity.toml -o velocity.toml\r\nfi\r\n\r\necho -e \"install complete\"", "container": "alpine:3.10", "entrypoint": "ash" } diff --git a/minecraft_proxy/velocity/velocity.toml b/minecraft/proxy/velocity/velocity.toml similarity index 100% rename from minecraft_proxy/velocity/velocity.toml rename to minecraft/proxy/velocity/velocity.toml diff --git a/minecraft_proxy/waterfall/README.md b/minecraft/proxy/waterfall/README.md similarity index 100% rename from minecraft_proxy/waterfall/README.md rename to minecraft/proxy/waterfall/README.md diff --git a/minecraft_proxy/waterfall/config.yml b/minecraft/proxy/waterfall/config.yml similarity index 100% rename from minecraft_proxy/waterfall/config.yml rename to minecraft/proxy/waterfall/config.yml diff --git a/minecraft_proxy/waterfall/egg-waterfall.json b/minecraft/proxy/waterfall/egg-waterfall.json similarity index 97% rename from minecraft_proxy/waterfall/egg-waterfall.json rename to minecraft/proxy/waterfall/egg-waterfall.json index 3af57a1e..9b322ab7 100644 --- a/minecraft_proxy/waterfall/egg-waterfall.json +++ b/minecraft/proxy/waterfall/egg-waterfall.json @@ -17,7 +17,7 @@ }, "scripts": { "installation": { - "script": "#!\/bin\/ash\r\n# Paper Installation Script\r\n#\r\n# Server Files: \/mnt\/server\r\napk add --no-cache --update curl jq\r\n\r\ncd \/mnt\/server\r\n\r\nif [ -n \"${DL_PATH}\" ]; then\r\n echo -e \"using supplied download url\"\r\n DOWNLOAD_URL=`eval echo $(echo ${DL_PATH} | sed -e 's\/{{\/${\/g' -e 's\/}}\/}\/g')`\r\nelse\r\n if [ -z \"$VANILLA_VERSION\" ] || [ \"${MINECRAFT_VERSION}\" == \"latest\" ]; then\r\n MINECRAFT_VERSION=$(curl -s https:\/\/papermc.io\/api\/v1\/waterfall | jq -r '.versions[0]')\r\n else\r\n VER_EXISTS=$(curl -s https:\/\/papermc.io\/api\/v1\/waterfall | jq -r --arg VERSION $MINECRAFT_VERSION '.versions | contains ([$VERSION])')\r\n fi\r\n \r\n if [ \"${VER_EXISTS}\" == \"true\" ]; then\r\n echo -e \"Version is valid. Using version ${MINECRAFT_VERSION}\"\r\n else\r\n echo -e \"Using the latest waterfall version\"\r\n MINECRAFT_VERSION=$(curl -s https:\/\/papermc.io\/api\/v1\/waterfall\/ | jq -r '.versions[0]')\r\n fi\r\n \r\n if [ ! ${BUILD_NUMBER} == \"latest\" ] ; then\r\n BUILD_EXISTS=$(curl -s https:\/\/papermc.io\/api\/v1\/waterfall\/${MINECRAFT_VERSION} | jq -r --arg BUILD ${BUILD_NUMBER} '.builds.all[] | IN($BUILD)' | grep true)\r\n LATEST_WATERFALL_VERSION=$(curl -s https:\/\/papermc.io\/api\/v1\/waterfall\/ | jq -r '.versions[0]')\r\n \r\n if [ \"${BUILD_EXISTS}\" == \"true\" ]; then\r\n echo -e \"Build is valid. Using version ${BUILD_NUMBER}\"\r\n else\r\n echo -e \"Using the latest paper build\"\r\n BUILD_NUMBER=${LATEST_WATERFALL_VERSION}\r\n fi\r\n fi\r\n \r\n echo \"Version being downloaded: ${BUILD_NUMBER}\"\r\n echo -e \"MC Version: ${MINECRAFT_VERSION}\"\r\n echo -e \"Build: ${BUILD_NUMBER}\"\r\n DOWNLOAD_URL=https:\/\/papermc.io\/api\/v1\/waterfall\/${MINECRAFT_VERSION}\/${BUILD_NUMBER}\/download \r\nfi\r\n\r\necho -e \"running curl -o ${SERVER_JARFILE} ${DOWNLOAD_URL}\"\r\n\r\ncurl -o ${SERVER_JARFILE} ${DOWNLOAD_URL}\r\n\r\nif [ ! -f config.yml ]; then\r\n echo -e \"Downloading waterfall config.yml\"\r\n curl -o config.yml https:\/\/raw.githubusercontent.com\/parkervcp\/eggs\/master\/minecraft_proxy\/waterfall\/config.yml\r\nelse\r\n echo -e \"Waterfall config.yml exists. Will not pull a new file\"\r\nfi", + "script": "#!\/bin\/ash\r\n# Paper Installation Script\r\n#\r\n# Server Files: \/mnt\/server\r\napk add --no-cache --update curl jq\r\n\r\ncd \/mnt\/server\r\n\r\nif [ -n \"${DL_PATH}\" ]; then\r\n echo -e \"using supplied download url\"\r\n DOWNLOAD_URL=`eval echo $(echo ${DL_PATH} | sed -e 's\/{{\/${\/g' -e 's\/}}\/}\/g')`\r\nelse\r\n if [ -z \"$VANILLA_VERSION\" ] || [ \"${MINECRAFT_VERSION}\" == \"latest\" ]; then\r\n MINECRAFT_VERSION=$(curl -s https:\/\/papermc.io\/api\/v1\/waterfall | jq -r '.versions[0]')\r\n else\r\n VER_EXISTS=$(curl -s https:\/\/papermc.io\/api\/v1\/waterfall | jq -r --arg VERSION $MINECRAFT_VERSION '.versions | contains ([$VERSION])')\r\n fi\r\n \r\n if [ \"${VER_EXISTS}\" == \"true\" ]; then\r\n echo -e \"Version is valid. Using version ${MINECRAFT_VERSION}\"\r\n else\r\n echo -e \"Using the latest waterfall version\"\r\n MINECRAFT_VERSION=$(curl -s https:\/\/papermc.io\/api\/v1\/waterfall\/ | jq -r '.versions[0]')\r\n fi\r\n \r\n if [ ! ${BUILD_NUMBER} == \"latest\" ] ; then\r\n BUILD_EXISTS=$(curl -s https:\/\/papermc.io\/api\/v1\/waterfall\/${MINECRAFT_VERSION} | jq -r --arg BUILD ${BUILD_NUMBER} '.builds.all[] | IN($BUILD)' | grep true)\r\n LATEST_WATERFALL_VERSION=$(curl -s https:\/\/papermc.io\/api\/v1\/waterfall\/ | jq -r '.versions[0]')\r\n \r\n if [ \"${BUILD_EXISTS}\" == \"true\" ]; then\r\n echo -e \"Build is valid. Using version ${BUILD_NUMBER}\"\r\n else\r\n echo -e \"Using the latest paper build\"\r\n BUILD_NUMBER=${LATEST_WATERFALL_VERSION}\r\n fi\r\n fi\r\n \r\n echo \"Version being downloaded: ${BUILD_NUMBER}\"\r\n echo -e \"MC Version: ${MINECRAFT_VERSION}\"\r\n echo -e \"Build: ${BUILD_NUMBER}\"\r\n DOWNLOAD_URL=https:\/\/papermc.io\/api\/v1\/waterfall\/${MINECRAFT_VERSION}\/${BUILD_NUMBER}\/download \r\nfi\r\n\r\necho -e \"running curl -o ${SERVER_JARFILE} ${DOWNLOAD_URL}\"\r\n\r\ncurl -o ${SERVER_JARFILE} ${DOWNLOAD_URL}\r\n\r\nif [ ! -f config.yml ]; then\r\n echo -e \"Downloading waterfall config.yml\"\r\n curl -o config.yml https:\/\/raw.githubusercontent.com\/parkervcp\/eggs\/master\/minecraft\/proxy\/waterfall\/config.yml\r\nelse\r\n echo -e \"Waterfall config.yml exists. Will not pull a new file\"\r\nfi", "container": "alpine:3.10", "entrypoint": "ash" } diff --git a/stock-eggs/minecraft/egg-paper.json b/stock-eggs/minecraft/egg-paper.json index 86208f68..1a1342c3 100644 --- a/stock-eggs/minecraft/egg-paper.json +++ b/stock-eggs/minecraft/egg-paper.json @@ -17,7 +17,7 @@ }, "scripts": { "installation": { - "script": "#!\/bin\/ash\r\n# Paper Installation Script\r\n#\r\n# Server Files: \/mnt\/server\r\napk add --no-cache --update curl jq\r\n\r\nif [ -n \"${DL_PATH}\" ]; then\r\n echo -e \"using supplied download url\"\r\n DOWNLOAD_URL=`eval echo $(echo ${DL_PATH} | sed -e 's\/{{\/${\/g' -e 's\/}}\/}\/g')`\r\nelse\r\n VER_EXISTS=`curl -s https:\/\/papermc.io\/api\/v1\/paper | jq -r --arg VERSION $MINECRAFT_VERSION '.versions[] | IN($VERSION)' | grep true`\r\n LATEST_PAPER_VERSION=`curl -s https:\/\/papermc.io\/api\/v1\/paper | jq -r '.versions' | jq -r '.[0]'`\r\n \r\n if [ \"${VER_EXISTS}\" == \"true\" ]; then\r\n echo -e \"Version is valid. Using version ${MINECRAFT_VERSION}\"\r\n else\r\n echo -e \"Using the latest paper version\"\r\n MINECRAFT_VERSION=${LATEST_PAPER_VERSION}\r\n fi\r\n \r\n BUILD_EXISTS=`curl -s https:\/\/papermc.io\/api\/v1\/paper\/${MINECRAFT_VERSION} | jq -r --arg BUILD ${BUILD_NUMBER} '.builds.all[] | IN($BUILD)' | grep true`\r\n LATEST_PAPER_BUILD=`curl -s https:\/\/papermc.io\/api\/v1\/paper\/${MINECRAFT_VERSION} | jq -r '.builds.latest'`\r\n \r\n if [ \"${BUILD_EXISTS}\" == \"true\" ] || [ ${BUILD_NUMBER} == \"latest\" ]; then\r\n echo -e \"Build is valid. Using version ${BUILD_NUMBER}\"\r\n else\r\n echo -e \"Using the latest paper build\"\r\n BUILD_NUMBER=${LATEST_PAPER_BUILD}\r\n fi\r\n \r\n echo \"Version being downloaded\"\r\n echo -e \"MC Version: ${MINECRAFT_VERSION}\"\r\n echo -e \"Build: ${BUILD_NUMBER}\"\r\n DOWNLOAD_URL=https:\/\/papermc.io\/api\/v1\/paper\/${MINECRAFT_VERSION}\/${BUILD_NUMBER}\/download \r\nfi\r\n\r\ncd \/mnt\/server\r\n\r\necho -e \"running curl -o ${SERVER_JARFILE} ${DOWNLOAD_URL}\"\r\n\r\ncurl -o ${SERVER_JARFILE} ${DOWNLOAD_URL}\r\n\r\necho -e \"Downloading MC server.properties\"\r\ncurl -o server.properties https:\/\/raw.githubusercontent.com\/parkervcp\/eggs\/master\/minecraft_java\/server.properties", + "script": "#!\/bin\/ash\r\n# Paper Installation Script\r\n#\r\n# Server Files: \/mnt\/server\r\napk add --no-cache --update curl jq\r\n\r\nif [ -n \"${DL_PATH}\" ]; then\r\n echo -e \"using supplied download url\"\r\n DOWNLOAD_URL=`eval echo $(echo ${DL_PATH} | sed -e 's\/{{\/${\/g' -e 's\/}}\/}\/g')`\r\nelse\r\n VER_EXISTS=`curl -s https:\/\/papermc.io\/api\/v1\/paper | jq -r --arg VERSION $MINECRAFT_VERSION '.versions[] | IN($VERSION)' | grep true`\r\n LATEST_PAPER_VERSION=`curl -s https:\/\/papermc.io\/api\/v1\/paper | jq -r '.versions' | jq -r '.[0]'`\r\n \r\n if [ \"${VER_EXISTS}\" == \"true\" ]; then\r\n echo -e \"Version is valid. Using version ${MINECRAFT_VERSION}\"\r\n else\r\n echo -e \"Using the latest paper version\"\r\n MINECRAFT_VERSION=${LATEST_PAPER_VERSION}\r\n fi\r\n \r\n BUILD_EXISTS=`curl -s https:\/\/papermc.io\/api\/v1\/paper\/${MINECRAFT_VERSION} | jq -r --arg BUILD ${BUILD_NUMBER} '.builds.all[] | IN($BUILD)' | grep true`\r\n LATEST_PAPER_BUILD=`curl -s https:\/\/papermc.io\/api\/v1\/paper\/${MINECRAFT_VERSION} | jq -r '.builds.latest'`\r\n \r\n if [ \"${BUILD_EXISTS}\" == \"true\" ] || [ ${BUILD_NUMBER} == \"latest\" ]; then\r\n echo -e \"Build is valid. Using version ${BUILD_NUMBER}\"\r\n else\r\n echo -e \"Using the latest paper build\"\r\n BUILD_NUMBER=${LATEST_PAPER_BUILD}\r\n fi\r\n \r\n echo \"Version being downloaded\"\r\n echo -e \"MC Version: ${MINECRAFT_VERSION}\"\r\n echo -e \"Build: ${BUILD_NUMBER}\"\r\n DOWNLOAD_URL=https:\/\/papermc.io\/api\/v1\/paper\/${MINECRAFT_VERSION}\/${BUILD_NUMBER}\/download \r\nfi\r\n\r\ncd \/mnt\/server\r\n\r\necho -e \"running curl -o ${SERVER_JARFILE} ${DOWNLOAD_URL}\"\r\n\r\ncurl -o ${SERVER_JARFILE} ${DOWNLOAD_URL}\r\n\r\necho -e \"Downloading MC server.properties\"\r\ncurl -o server.properties https:\/\/raw.githubusercontent.com\/parkervcp\/eggs\/master\/minecraft\/java\/server.properties", "container": "alpine:3.9", "entrypoint": "ash" }