2018-07-12 04:41:33 +08:00
{
"_comment" : "DO NOT EDIT: FILE GENERATED AUTOMATICALLY BY PTERODACTYL PANEL - PTERODACTYL.IO" ,
"meta" : {
"version" : "PTDL_v1"
} ,
2019-02-08 08:58:27 +08:00
"exported_at" : "2019-02-04T20:22:22+01:00" ,
"name" : "Forge Enhanced" ,
2018-07-12 04:41:33 +08:00
"author" : "parker@parkervcp.com" ,
"description" : "Minecraft Forge Server. Minecraft Forge is a modding API (Application Programming Interface), which makes it easier to create mods, and also make sure mods are compatible with each other." ,
"image" : "quay.io\/pterodactyl\/core:java" ,
"startup" : "java -Xms128M -Xmx{{SERVER_MEMORY}}M -jar {{SERVER_JARFILE}}" ,
"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 \"query.port\": \"{{server.build.default.port}}\"\r\n }\r\n }\r\n}" ,
"startup" : "{\r\n \"done\": \")! For help, type \",\r\n \"userInteraction\": [\r\n \"Go to eula.txt for more info.\"\r\n ]\r\n}" ,
"logs" : "{\r\n \"custom\": false,\r\n \"location\": \"logs\/latest.log\"\r\n}" ,
"stop" : "stop"
} ,
"scripts" : {
"installation" : {
2019-02-08 08:58:27 +08:00
"script" : "#!\/bin\/ash\r\n# Forge Installation Script\r\n#\r\n# Server Files: \/mnt\/server\r\napk update\r\napk add curl\r\n\r\nif [ -z \"$MC_VERSION\" ] || [ \"$MC_VERSION\" == \"latest\" ]; then\r\n FORGE_VERSION=$(curl -sl https:\/\/files.minecraftforge.net\/maven\/net\/minecraftforge\/forge\/ | grep -A1 Latest | grep -o -e '[1]\\.[0-9][0-9]\\?\\.\\?[0-9]\\?[0-9] - [0-9][0-9]\\.[0-9][0-9]\\.[0-9]\\?[0-9]\\.[0-9][0-9][0-9][0-9]' | sed 's\/ \/\/g')\r\nelse if [[ ! $FORGE_VERSION = *\"-\"* ]]; then\r\n FORGE_VERSION=$(curl -sl https:\/\/files.minecraftforge.net\/maven\/net\/minecraftforge\/forge\/index_$MC_VERSION.html | grep -A1 Latest | grep -o -e '[1]\\.[0-9][0-9]\\?\\.\\?[0-9]\\?[0-9] - [0-9][0-9]\\.[0-9][0-9]\\.[0-9]\\?[0-9]\\.[0-9][0-9][0-9][0-9]' | sed 's\/ \/\/g')\r\nfi\r\n\r\ncd \/mnt\/server\r\n\r\necho -e \"Downloading forge version \\\"$FORGE_VERSION\\\"\\n\"\r\ncurl -sS https:\/\/files.minecraftforge.net\/maven\/net\/minecraftforge\/forge\/$FORGE_VERSION\/forge-$FORGE_VERSION-installer.jar -o installer.jar\r\ncurl -sS https:\/\/files.minecraftforge.net\/maven\/net\/minecraftforge\/forge\/$FORGE_VERSION\/forge-$FORGE_VERSION-universal.jar -o $SERVER_JARFILE\r\n\r\nif [ ! -f .\/installer.jar ]; then\r\n echo \"!!! Invalide forge version \\\"$FORGE_VERSION\\\" !!!\\n\"\r\nfi\r\n\r\necho -e \"Installing forge server.\\n\"\r\njava -jar installer.jar --installServer\r\n\r\necho -e \"Deleting installer.jar file.\\n\"\r\nrm -rf installer.jar" ,
2019-02-02 21:49:27 +08:00
"container" : "openjdk:8-alpine" ,
2018-07-12 04:41:33 +08:00
"entrypoint" : "ash"
}
} ,
"variables" : [
{
"name" : "Server Jar File" ,
"description" : "The name of the Jarfile to use when running Forge Mod." ,
"env_variable" : "SERVER_JARFILE" ,
"default_value" : "server.jar" ,
"user_viewable" : 1 ,
"user_editable" : 1 ,
"rules" : "required|regex:\/^([\\w\\d._-]+)(\\.jar)$\/"
} ,
{
2019-02-08 08:58:27 +08:00
"name" : "Forge version" ,
"description" : "The version of forge that you want to run.\r\nExamples:\r\n- 1.12.2\r\n- 1.12.2-14.23.5.2810" ,
2018-07-12 04:41:33 +08:00
"env_variable" : "MC_VERSION" ,
"default_value" : "latest" ,
"user_viewable" : 1 ,
"user_editable" : 1 ,
"rules" : "required|string|max:20"
}
]
2019-02-08 08:58:27 +08:00
}