eggs/minecraft/proxy/java/velocity/egg-velocity.json

46 lines
2.9 KiB
JSON
Raw Normal View History

2019-07-15 08:40:46 +08:00
{
"_comment": "DO NOT EDIT: FILE GENERATED AUTOMATICALLY BY PTERODACTYL PANEL - PTERODACTYL.IO",
"meta": {
"version": "PTDL_v1"
},
2020-11-22 14:51:01 +08:00
"exported_at": "2020-11-22T01:50:29-05: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.",
"features": null,
2020-11-23 00:38:50 +08:00
"image": "quay.io\/parkervcp\/pterodactyl-images:adoptopenjdk-15-hotspot",
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": "{}",
"stop": "end"
2019-07-15 08:40:46 +08:00
},
"scripts": {
"installation": {
2020-11-22 14:51:01 +08:00
"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=\"latest\"\r\nfi\r\n\r\necho -e \"Getting download link\"\r\nDOWNLOAD_LINK=https:\/\/versions.velocitypowered.com\/download\/${VELOCITY_VERSION}\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\/java\/velocity\/velocity.toml -o velocity.toml\r\nfi\r\n\r\necho -e \"install complete\"",
2019-07-15 08:40:46 +08:00
"container": "alpine:3.10",
"entrypoint": "ash"
}
},
2020-11-22 14:51:01 +08:00
"variables": [
{
2019-07-15 08:40:46 +08:00
"name": "Velocity Version",
2020-11-22 14:51:01 +08:00
"description": "The Velocity Proxy version to download.\r\n\r\nSet to 'latest ' the download the last stable build.\r\nSet to '1.1.x-SNAPSHOT' to get the latest dev build.",
2019-07-15 08:40:46 +08:00
"env_variable": "VELOCITY_VERSION",
"default_value": "latest",
"user_viewable": true,
"user_editable": false,
2019-07-15 08:40:46 +08:00
"rules": "required|string|max:20"
},
{
"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",
"user_viewable": true,
"user_editable": false,
2019-07-15 08:40:46 +08:00
"rules": "required|string|max:20"
}
]
}