-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathoptimized-purpur-egg.json
More file actions
77 lines (77 loc) · 6.87 KB
/
Copy pathoptimized-purpur-egg.json
File metadata and controls
77 lines (77 loc) · 6.87 KB
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
77
{
"_comment": "DO NOT EDIT: FILE GENERATED AUTOMATICALLY BY PTERODACTYL PANEL - PTERODACTYL.IO",
"meta": {
"version": "PTDL_v2",
"update_url": null
},
"exported_at": "2024-04-25T14:14:00+02:00",
"name": "PurpurMC - Voltra Optimized",
"author": "eggs@voltra.pro",
"description": "Optimized by Voltra.pro for Minecraft server owners, delivering peak performance and frequent updates for the best gaming experience.",
"features": [
"eula"
],
"docker_images": {
"ghcr.io\/argon-foss\/images:java_23": "ghcr.io\/argon-foss\/images:java_23",
"ghcr.io\/pterodactyl\/yolks:java_21": "ghcr.io\/pterodactyl\/yolks:java_21",
"ghcr.io\/pterodactyl\/yolks:java_19j9": "ghcr.io\/pterodactyl\/yolks:java_19j9",
"ghcr.io\/pterodactyl\/yolks:java_19": "ghcr.io\/pterodactyl\/yolks:java_19",
"ghcr.io\/pterodactyl\/yolks:java_18j9": "ghcr.io\/pterodactyl\/yolks:java_18j9",
"ghcr.io\/pterodactyl\/yolks:java_18": "ghcr.io\/pterodactyl\/yolks:java_18",
"ghcr.io\/pterodactyl\/yolks:java_17j9": "ghcr.io\/pterodactyl\/yolks:java_17j9",
"ghcr.io\/pterodactyl\/yolks:java_17": "ghcr.io\/pterodactyl\/yolks:java_17",
"ghcr.io\/pterodactyl\/yolks:java_16j9": "ghcr.io\/pterodactyl\/yolks:java_16j9",
"ghcr.io\/pterodactyl\/yolks:java_16": "ghcr.io\/pterodactyl\/yolks:java_16",
"ghcr.io\/pterodactyl\/yolks:java_11j9": "ghcr.io\/pterodactyl\/yolks:java_11j9",
"ghcr.io\/pterodactyl\/yolks:java_11": "ghcr.io\/pterodactyl\/yolks:java_11",
"ghcr.io\/pterodactyl\/yolks:java_8j9": "ghcr.io\/pterodactyl\/yolks:java_8j9",
"ghcr.io\/pterodactyl\/yolks:java_8": "ghcr.io\/pterodactyl\/yolks:java_8"
},
"file_denylist": [],
"startup": "java -Xms256M -Xmx{{SERVER_MEMORY}}M --add-modules=jdk.incubator.vector -XX:+UseG1GC -XX:+ParallelRefProcEnabled -XX:MaxGCPauseMillis=200 -XX:+UnlockExperimentalVMOptions -XX:+DisableExplicitGC -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 -XX:G1NewSizePercent=30 -XX:G1MaxNewSizePercent=40 -XX:G1HeapRegionSize=8M -XX:G1ReservePercent=20 -jar {{SERVER_JARFILE}} --nogui",
"config": {
"files": "{\r\n \"server.properties\": {\r\n \"parser\": \"properties\",\r\n \"find\": {\r\n \"server-ip\": \"0.0.0.0\",\r\n \"server-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": "{}",
"stop": "stop"
},
"scripts": {
"installation": {
"script": "#!/bin/ash\n# shellcheck shell=dash\n\nVER_EXISTS=$(curl -s https://api.purpurmc.org/v2/purpur | jq -r --arg VERSION \"$MINECRAFT_VERSION\" '.versions[] | contains($VERSION)' | grep true)\nLATEST_VERSION=$(curl -s https://api.purpurmc.org/v2/purpur | jq -r '.versions' | jq -r '.[-1]')\n\nif [ \"${VER_EXISTS}\" = \"true\" ]; then\n printf \"Version is valid. Using version %s\\n\" \"${MINECRAFT_VERSION}\"\nelse\n printf \"Using the latest purpur version\\n\"\n MINECRAFT_VERSION=${LATEST_VERSION}\nfi\n\nBUILD_EXISTS=$(curl -s https://api.purpurmc.org/v2/purpur/\"${MINECRAFT_VERSION}\" | jq -r --arg BUILD \"${BUILD_NUMBER}\" '.builds.all | tostring | contains($BUILD)' | grep true)\nLATEST_BUILD=$(curl -s https://api.purpurmc.org/v2/purpur/\"${MINECRAFT_VERSION}\" | jq -r '.builds.latest')\n\nif [ \"${BUILD_EXISTS}\" = \"true\" ]; then\n printf \"Build is valid for version %s. Using build %s\\n\" \"${MINECRAFT_VERSION}\" \"${BUILD_NUMBER}\"\nelse\n printf \"Using the latest purpur build for version %s\\n\" \"${MINECRAFT_VERSION}\"\n BUILD_NUMBER=${LATEST_BUILD}\nfi\n\nDOWNLOAD_URL=https://api.purpurmc.org/v2/purpur/${MINECRAFT_VERSION}/${BUILD_NUMBER}/download\n\ncd /mnt/server || exit\nprintf \"Downloading Purpur version %s build %s\\n\" \"${MINECRAFT_VERSION}\" \"${BUILD_NUMBER}\"\n\nif [ -f \"server.jar\" ]; then\n mv server.jar server.jar.old\nfi\n\ncurl -o server.jar \"${DOWNLOAD_URL}\"\n\nprintf \"Downloading optimized configuration files\\n\"\n\nif [ ! -d \"config\" ]; then\n mkdir config\nfi\n\nif [ ! -f \"server.properties\" ]; then\n curl -o server.properties https://raw.githubusercontent.com/Voltrapro/Software-Optimizations/refs/heads/main/eggs/purpur/config/server.properties\nfi\n\nif [ ! -f \"bukkit.yml\" ]; then\n curl -o bukkit.yml https://raw.githubusercontent.com/Voltrapro/Software-Optimizations/refs/heads/main/eggs/purpur/config/bukkit.yml\nfi\n\nif [ ! -f \"spigot.yml\" ]; then\n curl -o spigot.yml https://raw.githubusercontent.com/Voltrapro/Software-Optimizations/refs/heads/main/eggs/purpur/config/spigot.yml\nfi\n\nif [ ! -f \"config/paper-global.yml\" ]; then\n curl -o config/paper-global.yml https://raw.githubusercontent.com/Voltrapro/Software-Optimizations/refs/heads/main/eggs/purpur/config/world/paper-global.yml\nfi\n\nif [ ! -f \"config/paper-world-defaults.yml\" ]; then\n curl -o config/paper-world-defaults.yml https://raw.githubusercontent.com/Voltrapro/Software-Optimizations/refs/heads/main/eggs/purpur/config/world/paper-world-defaults.yml\nfi\n\nif [ ! -f \"config/purpur.yml\" ]; then\n curl -o purpur.yml https://raw.githubusercontent.com/Voltrapro/Software-Optimizations/refs/heads/main/eggs/purpur/config/purpur.yml\nfi",
"container": "ghcr.io\/pterodactyl\/installers:alpine",
"entrypoint": "ash"
}
},
"variables": [
{
"name": "Minecraft Version",
"description": "",
"env_variable": "MINECRAFT_VERSION",
"default_value": "latest",
"user_viewable": true,
"user_editable": true,
"rules": "nullable|string|max:20",
"field_type": "text"
},
{
"name": "Server Jar",
"description": "The name given to the server jar file. This is not user viewable.",
"env_variable": "SERVER_JARFILE",
"default_value": "server.jar",
"user_viewable": false,
"user_editable": false,
"rules": "required|string|max:20",
"field_type": "text"
},
{
"name": "Build Number",
"description": "The build number for the paper 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,
"rules": "required|string|max:20",
"field_type": "text"
}
]
}