2018-07-12 04:41:33 +08:00
|
|
|
{
|
|
|
|
"_comment": "DO NOT EDIT: FILE GENERATED AUTOMATICALLY BY PTERODACTYL PANEL - PTERODACTYL.IO",
|
|
|
|
"meta": {
|
2021-03-12 21:39:37 +08:00
|
|
|
"version": "PTDL_v1",
|
|
|
|
"update_url": null
|
2018-07-12 04:41:33 +08:00
|
|
|
},
|
2021-10-24 22:56:13 +08:00
|
|
|
"exported_at": "2021-10-24T16:47:50+02:00",
|
2018-07-12 04:41:33 +08:00
|
|
|
"name": "PocketmineMP",
|
|
|
|
"author": "info@swisscrafting.ch",
|
|
|
|
"description": "Pocketmine Egg\r\nby onekintaro from swisscrafting.ch\r\nwith the nice help from #eggs Channel on Pterodactyl-Discord :)",
|
2020-12-24 20:06:32 +08:00
|
|
|
"features": null,
|
2021-03-12 21:39:37 +08:00
|
|
|
"images": [
|
2021-10-24 22:56:13 +08:00
|
|
|
"ghcr.io\/parkervcp\/yolks:debian"
|
2021-03-12 21:39:37 +08:00
|
|
|
],
|
|
|
|
"file_denylist": [],
|
2018-07-12 04:41:33 +08:00
|
|
|
"startup": ".\/bin\/php7\/bin\/php .\/PocketMine-MP.phar --no-wizard --disable-ansi",
|
|
|
|
"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\": \"server.log\"\r\n}",
|
|
|
|
"stop": "stop"
|
|
|
|
},
|
|
|
|
"scripts": {
|
|
|
|
"installation": {
|
2021-10-24 22:56:13 +08:00
|
|
|
"script": "#!\/bin\/bash\r\n\r\napt update\r\napt install -y curl jq\r\n\r\ncd \/mnt\/server\r\n\r\n## get release info and download links\r\nLATEST_JSON=$(curl --silent \"https:\/\/api.github.com\/repos\/${GITHUB_PACKAGE}\/releases\/latest\")\r\nRELEASES=$(curl --silent \"https:\/\/api.github.com\/repos\/${GITHUB_PACKAGE}\/releases\")\r\n\r\nDOWNLOAD_LINK=$(echo ${LATEST_JSON} | jq .assets | jq -r .[].browser_download_url | grep -i ${MATCH})\r\n\r\n## this is a simple script to validate a download url actaully exists\r\n\r\nif [ ! -z \"${DOWNLOAD_URL}\"]; then \r\n if curl --output \/dev\/null --silent --head --fail ${DOWNLOAD_URL}; then\r\n echo -e \"link is valid. setting download link to ${DOWNLOAD_URL}\"\r\n DOWNLOAD_LINK=${DOWNLOAD_URL}\r\n else \r\n echo -e \"link is invalid closing out\"\r\n exit 2\r\n fi\r\nfi\r\n\r\ncurl -sSL ${DOWNLOAD_LINK} > PocketMine-MP.phar\r\n\r\necho -e \"\\n downloading latest php build from pocketmine\"\r\ncurl -sSL -o php.binary.tar.gz https:\/\/jenkins.pmmp.io\/job\/PHP-8.0-Aggregate\/lastStableBuild\/artifact\/PHP-8.0-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\/game_eggs\/minecraft\/bedrock\/pocketmine_mp\/server.properties > server.properties\r\n\r\necho -e \"\\n unpacking php binaries\"\r\ntar -xzvf php.binary.tar.gz\r\n\r\necho -e \"\\n removing php packages\"\r\nrm -rf \/mnt\/server\/php.binary.tar.gz\r\n\r\necho -e \"\\n creating files and folders\"\r\ntouch banned-ips.txt banned-players.txt ops.txt white-list.txt server.log\r\nmkdir -p players worlds plugins resource_packs",
|
2020-07-15 10:16:44 +08:00
|
|
|
"container": "debian:buster-slim",
|
|
|
|
"entrypoint": "bash"
|
2018-07-12 04:41:33 +08:00
|
|
|
}
|
|
|
|
},
|
2018-10-28 10:56:10 +08:00
|
|
|
"variables": [
|
2021-03-12 21:39:37 +08:00
|
|
|
{
|
|
|
|
"name": "Github Package",
|
|
|
|
"description": "",
|
|
|
|
"env_variable": "GITHUB_PACKAGE",
|
|
|
|
"default_value": "pmmp\/PocketMine-MP",
|
|
|
|
"user_viewable": false,
|
|
|
|
"user_editable": false,
|
|
|
|
"rules": "required|string|max:20"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "Match",
|
|
|
|
"description": "",
|
|
|
|
"env_variable": "MATCH",
|
|
|
|
"default_value": "PocketMine-MP.phar",
|
|
|
|
"user_viewable": false,
|
|
|
|
"user_editable": false,
|
|
|
|
"rules": "required|string|max:20"
|
2018-10-28 10:56:10 +08:00
|
|
|
}
|
|
|
|
]
|
2021-08-22 00:26:53 +08:00
|
|
|
}
|