forked from astrooom/pterodactyl-eggs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathegg-void-serverpack.json
76 lines (76 loc) · 5.43 KB
/
egg-void-serverpack.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
{
"_comment": "DO NOT EDIT: FILE GENERATED AUTOMATICALLY BY PTERODACTYL PANEL - PTERODACTYL.IO",
"meta": {
"version": "PTDL_v1",
"update_url": null
},
"exported_at": "2022-05-14T16:22:27+02:00",
"name": "url-serverpack",
"author": "[email protected]",
"description": "Egg to download a minecraft serverpack from a direct download link (url)",
"features": [
"eula",
"java_version",
"pid_limit"
],
"images": [
"ghcr.io\/pterodactyl\/yolks:java_17",
"ghcr.io\/pterodactyl\/yolks:java_16",
"ghcr.io\/pterodactyl\/yolks:java_11",
"ghcr.io\/pterodactyl\/yolks:java_8",
"ghcr.io\/pterodactyl\/yolks:java_14"
],
"file_denylist": [],
"startup": "java -Xms128M -Xmx$(({{SERVER_MEMORY}}-512))M {{STARTUP_FLAGS}} -Dterminal.jline=false -Dterminal.ansi=true -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 \"sync-chunk-writes\": \"false\",\r\n \"view-distance\": \"6\"\r\n }\r\n }\r\n}",
"startup": "{\r\n \"done\": \")! For help, type \"\r\n}",
"logs": "{}",
"stop": "stop"
},
"scripts": {
"installation": {
"script": "#!\/bin\/bash\r\n# Download URL Serverpack Installation Script\r\n# Server Files: \/mnt\/server\r\n# Install curl, python3, pip3 and java OpenJDK and configure Java\r\napt-get update -y\r\napt-get upgrade -y\r\nmkdir -p \/usr\/share\/man\/man1 \/usr\/share\/man\/man2\r\napt -y install sudo curl python3 python3-pip openjdk-11-jdk-headless rsync\r\nsudo dpkg --configure -a\r\nupdate-alternatives --config java\r\n\r\n# Go to server folder\r\nmkdir -p \/mnt\/server\r\ncd \/mnt\/server\r\ncurl -o C-S-D.tar.gz -L \"https:\/\/github.com\/astrooom\/Minecraft-Serverpack-Installer\/archive\/master.tar.gz\"\r\ntar -zxvf C-S-D.tar.gz --strip-components=1\r\npip3 install -r requirements.txt\r\n\r\n# Remove old modpack files if exists\r\nrm -rf \/mnt\/server\/libraries\r\nrm -rf \/mnt\/server\/mods\r\nrm -rf \/mnt\/server\/coremods\r\nrm -rf \/mnt\/server\/.fabric\r\nrm -rf \/mnt\/server\/user_jvm_args.txt\r\nrm \/mnt\/server\/server.jar\r\n\r\n# Run modpack installer script\r\npython3 run.py -provider direct -modpack-id ${MODPACK_ID} --modpack-version ${VERSION_ID} --clean-scripts --pterodactyl\r\nrm C-S-D.tar.gz\r\n\r\n# Move files from scripts modpack_folder to main dir for ptero to see it\r\nrsync -a \/mnt\/server\/modpack_folder\/ \/mnt\/server\/\r\nrm -rf \/mnt\/server\/modpack_folder\r\n\r\n# Deletes files left from script\r\nrm \/mnt\/server\/*.py\r\nrm \/mnt\/server\/README.md\r\nrm \/mnt\/server\/requirements.txt\r\nrm \/mnt\/server\/.gitignore\r\nrm -r \/mnt\/server\/__pycache__\r\nrm \/mnt\/server\/ModpackDownloader-cli-*.jar\r\n\r\n# Create symlink to allow for new forge startup\r\ncd \/mnt\/server\r\nln -sf libraries\/net\/minecraftforge\/forge\/*\/unix_args.txt unix_args.txt",
"container": "debian:buster-slim",
"entrypoint": "bash"
}
},
"variables": [
{
"name": "Download URL",
"description": "The direct download link for the serverpack.",
"env_variable": "MODPACK_ID",
"default_value": "https:\/\/vl4.voidswrath.com\/releases\/CrazyCraft4Server.zip",
"user_viewable": true,
"user_editable": false,
"rules": "required|string|max:20"
},
{
"name": "Modpack Version (UNUSED - left for compatibility reasons)",
"description": "Left for compatibility reasons.",
"env_variable": "VERSION_ID",
"default_value": "",
"user_viewable": true,
"user_editable": true,
"rules": "required|string|max:20"
},
{
"name": "Server Jarfile",
"description": "Full name of JAR file to use to run the server. The download script will rename it to server.jar by default.",
"env_variable": "SERVER_JARFILE",
"default_value": "server.jar",
"user_viewable": true,
"user_editable": true,
"rules": "required|string|max:50"
},
{
"name": "JVM Startup Flags",
"description": "JVM Startup flags to use for the server. For Modpacks we recommend using Aikars flags for optimum performance. They are enabled by default.\r\n\r\nDetails: https:\/\/aikar.co\/2018\/07\/02\/tuning-the-jvm-g1gc-garbage-collector-flags-for-minecraft\/",
"env_variable": "STARTUP_FLAGS",
"default_value": "-XX:+UseG1GC -XX:+ParallelRefProcEnabled -XX:MaxGCPauseMillis=200 -XX:+UnlockExperimentalVMOptions -XX:+DisableExplicitGC -XX:G1NewSizePercent=30 -XX:G1MaxNewSizePercent=40 -XX:G1HeapRegionSize=8M -XX:G1ReservePercent=20 -XX:G1HeapWastePercent=5 -XX:G1MixedGCCountTarget=4 -XX:InitiatingHeapOccupancyPercent=15 -XX:G1MixedGCLiveThresholdPercent=90 -XX:G1RSetUpdatingPauseTimePercent=5 -XX:SurvivorRatio=32 -XX:+PerfDisableSharedMem -XX:MaxTenuringThreshold=1 -Dusing.aikars.flags=https:\/\/mcflags.emc.gs -Daikars.new.flags=true -Dlog4j2.formatMsgNoLookups=true",
"user_viewable": true,
"user_editable": true,
"rules": "nullable|string|max:2000"
}
]
}