2020-03-09 10:57:01 +08:00
{
"_comment" : "DO NOT EDIT: FILE GENERATED AUTOMATICALLY BY PTERODACTYL PANEL - PTERODACTYL.IO" ,
"meta" : {
2022-09-29 02:25:17 +08:00
"version" : "PTDL_v2" ,
2021-01-25 02:09:42 +08:00
"update_url" : null
2020-03-09 10:57:01 +08:00
} ,
2024-02-24 03:06:01 +08:00
"exported_at" : "2024-02-23T20:05:07+01:00" ,
2020-03-09 10:57:01 +08:00
"name" : "Magma" ,
"author" : "support@pterodactyl.io" ,
2024-02-24 03:06:01 +08:00
"description" : "Magma is most powerful Forge server providing you with Forge mods and Bukkit Plugins using Spigot and Paper for Performance Optimization and Stability. Using: https:\/\/github.com\/magmamaintained" ,
2021-11-26 08:14:52 +08:00
"features" : [
"eula" ,
2022-01-21 01:43:40 +08:00
"java_version" ,
"pid_limit"
2021-11-26 08:14:52 +08:00
] ,
2022-09-29 02:25:17 +08:00
"docker_images" : {
2023-05-18 06:25:59 +08:00
"Java 8" : "ghcr.io\/pterodactyl\/yolks:java_8" ,
2022-09-29 02:25:17 +08:00
"Java 11" : "ghcr.io\/pterodactyl\/yolks:java_11" ,
2023-05-18 06:25:59 +08:00
"Java 16" : "ghcr.io\/pterodactyl\/yolks:java_16" ,
"Java 17" : "ghcr.io\/pterodactyl\/yolks:java_17" ,
"Java 18" : "ghcr.io\/pterodactyl\/yolks:java_18"
2022-09-29 02:25:17 +08:00
} ,
2021-06-15 02:37:48 +08:00
"file_denylist" : [ ] ,
2024-02-24 03:06:01 +08:00
"startup" : "java -Xms128M -XX:MaxRAMPercentage=95.0 -jar {{SERVER_JARFILE}}" ,
2020-03-09 10:57:01 +08:00
"config" : {
"files" : "{\r\n \"server.properties\": {\r\n \"parser\": \"properties\",\r\n \"find\": {\r\n \"server-ip\": \"0.0.0.0\",\r\n \"enable-query\": \"true\",\r\n \"server-port\": \"{{server.build.default.port}}\"\r\n }\r\n }\r\n}" ,
2021-12-17 19:18:38 +08:00
"startup" : "{\r\n \"done\": \")! For help, type \"\r\n}" ,
"logs" : "{}" ,
2020-03-09 10:57:01 +08:00
"stop" : "stop"
} ,
"scripts" : {
"installation" : {
2024-02-24 03:06:01 +08:00
"script" : "#!\/bin\/bash\r\n\r\nmkdir -p \/mnt\/server\r\ncd \/mnt\/server\r\n\r\n## get release info and download links\r\nLATEST_JSON=$(curl --silent \"https:\/\/api.github.com\/repos\/magmamaintained\/Magma-${MC_VERSION}\/releases\/latest\")\r\nRELEASES=$(curl --silent \"https:\/\/api.github.com\/repos\/magmamaintained\/Magma-${MC_VERSION}\/releases\")\r\n\r\nif [ -z \"${TAG_VERSION}\" ] || [ \"${TAG_VERSION}\" == \"latest\" ]; then\r\n DOWNLOAD_LINK=$(echo ${LATEST_JSON} | jq .assets | jq -r .[].browser_download_url )\r\nelse\r\n VERSION_CHECK=$(echo ${RELEASES} | jq -r --arg VERSION \"${TAG_VERSION}\" '.[] | select(.tag_name==$VERSION) | .tag_name')\r\n if [ \"${TAG_VERSION}\" == \"${VERSION_CHECK}\" ]; then\r\n DOWNLOAD_LINK=$(echo ${RELEASES} | jq -r --arg VERSION \"${TAG_VERSION}\" '.[] | select(.tag_name==$VERSION) | .assets[].browser_download_url')\r\n else\r\n echo -e \"defaulting to latest release\"\r\n DOWNLOAD_LINK=$(echo ${LATEST_JSON} | jq .assets | jq -r .[].browser_download_url)\r\n fi\r\nfi\r\n\r\nif [ ! -z \"${DOWNLOAD_LINK}\" ]; then \r\n if curl --output \/dev\/null --silent --head --fail ${DOWNLOAD_LINK}; then\r\n echo -e \"link is valid. setting download link to ${DOWNLOAD_LINK}\"\r\n DOWNLOAD_LINK=${DOWNLOAD_LINK}\r\n else \r\n echo -e \"link is invalid closing out\"\r\n exit 2\r\n fi\r\nfi\r\n\r\n\r\necho \"Download Link: '${DOWNLOAD_LINK}'\"\r\n\r\n# Check we found a download link\r\n\r\n# Download server.jar\r\necho -e \"running: curl -sSL -o ${SERVER_JARFILE} ${DOWNLOAD_LINK}\"\r\ncurl -sSL -o ${SERVER_JARFILE} -sSL ${DOWNLOAD_LINK}\r\necho -e \"Install Complete\"" ,
"container" : "ghcr.io\/parkervcp\/installers:debian" ,
2021-01-25 02:09:42 +08:00
"entrypoint" : "bash"
2020-03-09 10:57:01 +08:00
}
} ,
"variables" : [
{
"name" : "Server Jar File" ,
"description" : "The name of the server jarfile to run the server with." ,
"env_variable" : "SERVER_JARFILE" ,
"default_value" : "server.jar" ,
2021-12-17 19:18:38 +08:00
"user_viewable" : true ,
2021-01-25 02:09:42 +08:00
"user_editable" : false ,
2022-09-29 02:25:17 +08:00
"rules" : "required|regex:\/^([\\w\\d._-]+)(\\.jar)$\/" ,
"field_type" : "text"
2020-03-09 10:57:01 +08:00
} ,
{
2021-01-25 19:08:43 +08:00
"name" : "Minecraft Version" ,
2024-02-24 03:06:01 +08:00
"description" : "" ,
2021-01-25 19:08:43 +08:00
"env_variable" : "MC_VERSION" ,
2024-02-24 03:06:01 +08:00
"default_value" : "1.20.1" ,
2021-01-25 02:09:42 +08:00
"user_viewable" : true ,
"user_editable" : true ,
2024-02-24 03:06:01 +08:00
"rules" : "nullable|string|in:1.20.1,1.19.3,1.18.2,1.12.2" ,
2022-09-29 02:25:17 +08:00
"field_type" : "text"
2021-12-17 19:18:38 +08:00
} ,
{
2022-05-22 12:21:59 +08:00
"name" : "Tag Version" ,
2024-02-24 03:06:01 +08:00
"description" : "Optional.\r\n\r\nSpecify the tag version to install. Set latest to install latest" ,
2022-05-22 12:21:59 +08:00
"env_variable" : "TAG_VERSION" ,
"default_value" : "latest" ,
2021-12-17 19:18:38 +08:00
"user_viewable" : true ,
"user_editable" : true ,
2024-02-24 03:06:01 +08:00
"rules" : "required|string|max:32" ,
2022-09-29 02:25:17 +08:00
"field_type" : "text"
2020-03-09 10:57:01 +08:00
}
]
2023-07-29 23:46:53 +08:00
}