Skip to content
This repository has been archived by the owner on May 14, 2024. It is now read-only.

Update power-nukkitx 2.0 #2811

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
52 changes: 52 additions & 0 deletions game_eggs/minecraft/bedrock/PowerNukkitX/egg-powernukkitx-v2.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
{
"_comment": "DO NOT EDIT: FILE GENERATED AUTOMATICALLY BY PTERODACTYL PANEL - PTERODACTYL.IO",
"meta": {
"version": "PTDL_v2",
"update_url": null
},
"exported_at": "2024-03-19T21:35:04+01:00",
"name": "PowerNukkitX",
"author": "[email protected]",
"description": "PowerNukkitX support for Pterodactyl",
"features": null,
"docker_images": {
"ghcr.io\/parkervcp\/yolks:debian": "ghcr.io\/parkervcp\/yolks:debian"
},
"file_denylist": [],
"startup": ".\/java-lib\/bin\/java -Dfile.encoding=UTF-8 -Djansi.passthrough=true -Dterminal.ansi=true -XX:+UnlockExperimentalVMOptions -XX:+UseG1GC -XX:+UseStringDeduplication -XX:+EnableJVMCI --module-path=\".\/libs\/graal-sdk-23.0.0.jar:.\/libs\/truffle-api-23.0.0.jar\" --add-opens java.base\/java.lang=ALL-UNNAMED --add-opens java.base\/java.io=ALL-UNNAMED -cp \"powernukkitx.jar:.\/libs\/*\" cn.nukkit.Nukkit",
"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}",
"logs": "{}",
"stop": "stop"
},
"scripts": {
"installation": {
"script": "#!\/bin\/bash\r\napt-get update\r\napt-get install -y git curl wget jq file tar unzip zip openssl\r\nmkdir -p \/mnt\/server\/ # Not required. Only here for parkervcp's local test setup\r\ncd \/mnt\/server || exit 1\r\nUPGRADE=\"no\"\r\nif [ -d \".\/java\" ]; then\r\nUPGRADE=\"yes\"\r\nfi\r\nwget https:\/\/download.oracle.com\/graalvm\/17\/latest\/graalvm-jdk-17_linux-x64_bin.tar.gz\r\nwget https:\/\/motci.cn\/job\/PowerNukkitX\/job\/master\/lastSuccessfulBuild\/artifact\/build\/PowerNukkitX-Libs.zip -O pnx.zip\r\nwget https:\/\/motci.cn\/job\/PowerNukkitX\/job\/master\/lastSuccessfulBuild\/artifact\/build\/powernukkitx.jar\r\nwget https:\/\/raw.githubusercontent.com\/PowerNukkitX\/PowerNukkitX\/master\/scripts\/start.sh -O start.sh\r\nunzip pnx.zip\r\ntar -zxvf graalvm-jdk-17_linux-x64_bin.tar.gz\r\nrm graalvm-jdk-17_linux-x64_bin.tar.gz\r\nmv graalvm*\/ java-lib\/\r\nrm -fr pnx.zip 2>&1 >\/dev\/null\r\nmv .\/target\/linux-x86\/pnx .\/ 2>&1 >\/dev\/null\r\nrm -fr target 2>&1 >\/dev\/null\r\nrm -fr java 2>&1 >\/dev\/null\r\nchmod +x start.sh \r\nrm -fr tmp-GraalVM.tar.gz 2>&1 >\/dev\/null\r\ncat <<EOF\r\n----------------------------------------\r\n| |\r\n| PowerNukkitX Installation Done |\r\n| |\r\n----------------------------------------\r\nEOF",
"container": "debian:bullseye-slim",
"entrypoint": "bash"
}
},
"variables": [
{
"name": "Version to install",
"description": "Choose between latest or dev",
"env_variable": "VERSION",
"default_value": "latest",
"user_viewable": true,
"user_editable": true,
"rules": "required|string",
"field_type": "text"
},
{
"name": "AutoReboot mode",
"description": "to set auto reboot mode please enter -r",
"env_variable": "AUTOREBOOT",
"default_value": "",
"user_viewable": true,
"user_editable": true,
"rules": "nullable|string|max:2",
"field_type": "text"
}
]
}