2019-07-15 08:40:46 +08:00
{
"_comment" : "DO NOT EDIT: FILE GENERATED AUTOMATICALLY BY PTERODACTYL PANEL - PTERODACTYL.IO" ,
"meta" : {
2023-04-03 23:59:22 +08:00
"version" : "PTDL_v2" ,
2021-06-15 02:37:48 +08:00
"update_url" : null
2019-07-15 08:40:46 +08:00
} ,
2023-08-05 10:26:37 +08:00
"exported_at" : "2023-08-05T03:24:56+01:00" ,
2019-07-15 08:40:46 +08:00
"name" : "Velocity" ,
"author" : "parker@parkervcp.com" ,
"description" : "Velocity is a Minecraft server proxy with unparalleled server support, scalability, and flexibility." ,
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
] ,
2023-04-03 23:59:22 +08:00
"docker_images" : {
"Java 17" : "ghcr.io\/pterodactyl\/yolks:java_17" ,
"Java 16" : "ghcr.io\/pterodactyl\/yolks:java_16" ,
"Java 11" : "ghcr.io\/pterodactyl\/yolks:java_11" ,
"Java 8" : "ghcr.io\/pterodactyl\/yolks:java_8"
} ,
2021-06-15 02:37:48 +08:00
"file_denylist" : [ ] ,
2020-11-22 14:51:01 +08:00
"startup" : "java -Xms128M -Xmx{{SERVER_MEMORY}}M -XX:+UseG1GC -XX:G1HeapRegionSize=4M -XX:+UnlockExperimentalVMOptions -XX:+ParallelRefProcEnabled -XX:+AlwaysPreTouch -XX:MaxInlineLevel=15 -jar {{SERVER_JARFILE}}" ,
2019-07-15 08:40:46 +08:00
"config" : {
"files" : "{\r\n \"velocity.toml\": {\r\n \"parser\": \"file\",\r\n \"find\": {\r\n \"bind = \": \"bind = \\\"0.0.0.0:{{server.build.default.port}}\\\"\"\r\n }\r\n }\r\n}" ,
"startup" : "{\r\n \"done\": \"Done (\"\r\n}" ,
"logs" : "{}" ,
2020-11-22 03:21:31 +08:00
"stop" : "end"
2019-07-15 08:40:46 +08:00
} ,
"scripts" : {
"installation" : {
2023-04-03 23:59:22 +08:00
"script" : "#!\/bin\/ash\r\n# Velocity Proxy Installation Script\r\n#\r\n# Server Files: \/mnt\/server\r\nPROJECT=velocity\r\n\r\nif [[ -z ${VELOCITY_VERSION} ]] || [[ ${VELOCITY_VERSION} == \"latest\" ]]; then\r\n VELOCITY_VERSION=\"latest\"\r\nfi\r\n\r\nif [[ -n \"${DOWNLOAD_LINK}\" ]]; then\r\n echo -e \"Using supplied download url: ${DOWNLOAD_LINK}\"\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\/v2\/projects\/${PROJECT} | jq -r --arg VERSION $VELOCITY_VERSION '.versions[] | contains($VERSION)' | grep true)\r\n LATEST_VERSION=$(curl -s https:\/\/papermc.io\/api\/v2\/projects\/${PROJECT} | jq -r '.versions' | jq -r '.[-1]')\r\n\r\nif [[ \"${VER_EXISTS}\" == \"true\" ]]; then\r\n echo -e \"Version is valid. Using version ${VELOCITY_VERSION}\"\r\nelse\r\n echo -e \"Using the latest ${PROJECT} version\"\r\n VELOCITY_VERSION=${LATEST_VERSION}\r\nfi\r\n\r\nBUILD_EXISTS=$(curl -s https:\/\/papermc.io\/api\/v2\/projects\/${PROJECT}\/versions\/${VELOCITY_VERSION} | jq -r --arg BUILD ${BUILD_NUMBER} '.builds[] | tostring | contains($BUILD)' | grep true)\r\nLATEST_BUILD=$(curl -s https:\/\/papermc.io\/api\/v2\/projects\/${PROJECT}\/versions\/${VELOCITY_VERSION} | jq -r '.builds' | jq -r '.[-1]')\r\n\r\nif [[ \"${BUILD_EXISTS}\" == \"true\" ]]; then\r\n echo -e \"Build is valid for version ${VELOCITY_VERSION}. Using build ${BUILD_NUMBER}\"\r\nelse\r\n echo -e \"Using the latest ${PROJECT} build for version ${VELOCITY_VERSION}\"\r\n BUILD_NUMBER=${LATEST_BUILD}\r\nfi\r\n\r\nJAR_NAME=${PROJECT}-${VELOCITY_VERSION}-${BUILD_NUMBER}.jar\r\necho \"Version being downloaded\"\r\necho -e \"Velocity Version: ${VELOCITY_VERSION}\"\r\necho -e \"Build: ${BUILD_NUMBER}\"\r\necho -e \"JAR Name of Build: ${JAR_NAME}\"\r\nDOWNLOAD_URL=https:\/\/papermc.io\/api\/v2\/projects\/${PROJECT}\/versions\/${VELOCITY_VERSION}\/builds\/${BUILD_NUMBER}\/downloads\/${JAR_NAME}\r\n\r\nfi\r\ncd \/mnt\/server\r\necho -e \"Running curl -o ${SERVER_JARFILE} ${DOWNLOAD_URL}\"\r\n\r\nif [[ -f ${SERVER_JARFILE} ]]; then\r\nmv ${SERVER_JARFILE} ${SERVER_JARFILE}.old\r\nfi\r\n\r\ncurl -o ${SERVER_JARFILE} ${DOWNLOAD_URL}\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\/game_eggs\/minecraft\/proxy\/java\/velocity\/velocity.toml -o velocity.toml\r\nfi\r\n\r\nif [[ -f forwarding.secret ]]; then\r\n echo -e \"velocity forwarding secret file already exists\"\r\nelse\r\n echo -e \"creating forwarding secret file\"\r\n touch forwarding.secret\r\n date +%s | sha256sum | base64 | head -c 12 > forwarding.secret\r\nfi\r\n\r\necho -e \"install complete\"" ,
2021-12-03 00:55:42 +08:00
"container" : "ghcr.io\/pterodactyl\/installers:alpine" ,
2019-07-15 08:40:46 +08:00
"entrypoint" : "ash"
}
} ,
2020-11-22 14:51:01 +08:00
"variables" : [
{
2019-07-15 08:40:46 +08:00
"name" : "Velocity Version" ,
2023-08-05 10:26:37 +08:00
"description" : "The Velocity Proxy version to download.\r\n\r\nSet to 'latest ' the download the last stable build." ,
2019-07-15 08:40:46 +08:00
"env_variable" : "VELOCITY_VERSION" ,
"default_value" : "latest" ,
2020-11-22 03:21:31 +08:00
"user_viewable" : true ,
"user_editable" : false ,
2023-04-03 23:59:22 +08:00
"rules" : "required|string|max:20" ,
"field_type" : "text"
2019-07-15 08:40:46 +08:00
} ,
{
"name" : "Server Jar File" ,
2020-11-22 14:51:01 +08:00
"description" : "Server Jarfile, by default this is set to 'velocity.jar'.\r\nSet it to otherwise if you wish to have a different jarfile name." ,
2019-07-15 08:40:46 +08:00
"env_variable" : "SERVER_JARFILE" ,
"default_value" : "velocity.jar" ,
2020-11-22 03:21:31 +08:00
"user_viewable" : true ,
"user_editable" : false ,
2023-04-03 23:59:22 +08:00
"rules" : "required|string|max:32|regex:\/^([\\w\\d._-]+)(\\.jar)$\/" ,
"field_type" : "text"
2021-12-03 00:55:42 +08:00
} ,
{
"name" : "Download Path" ,
"description" : "A URL to use to download a server.jar rather than the ones in the install script. This is not user viewable." ,
"env_variable" : "DL_PATH" ,
"default_value" : "" ,
"user_viewable" : false ,
"user_editable" : false ,
2023-04-03 23:59:22 +08:00
"rules" : "nullable|string" ,
"field_type" : "text"
2021-12-03 00:55:42 +08:00
} ,
{
"name" : "Build Number" ,
"description" : "The build number for the velocity release.\r\n\r\nLeave at latest to always get the latest version. Invalid versions will default to latest." ,
"env_variable" : "BUILD_NUMBER" ,
"default_value" : "latest" ,
"user_viewable" : true ,
"user_editable" : true ,
2023-04-03 23:59:22 +08:00
"rules" : "required|string|max:20" ,
"field_type" : "text"
2019-07-15 08:40:46 +08:00
}
]
2022-08-28 22:31:14 +08:00
}