-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathegg.json
73 lines (73 loc) · 6.71 KB
/
egg.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
{
"_comment": "DO NOT EDIT: FILE GENERATED AUTOMATICALLY BY PTERODACTYL PANEL - PTERODACTYL.IO",
"meta": {
"version": "PTDL_v2",
"update_url": null
},
"exported_at": "2023-12-09T10:05:35+00:00",
"name": "Purpur (pyro-optimized)",
"author": "[email protected]",
"description": "A highly optimized configuration for Purpur tailored for pyro.host.",
"features": [
"eula"
],
"docker_images": {
"ghcr.io\/pterodactyl\/yolks:java_8": "ghcr.io\/pterodactyl\/yolks:java_8",
"ghcr.io\/pterodactyl\/yolks:java_11": "ghcr.io\/pterodactyl\/yolks:java_11",
"ghcr.io\/pterodactyl\/yolks:java_16": "ghcr.io\/pterodactyl\/yolks:java_16",
"ghcr.io\/pterodactyl\/yolks:java_17": "ghcr.io\/pterodactyl\/yolks:java_17",
"ghcr.io\/pterodactyl\/yolks:java_18": "ghcr.io\/pterodactyl\/yolks:java_18",
"ghcr.io\/pterodactyl\/yolks:java_8j9": "ghcr.io\/pterodactyl\/yolks:java_8j9",
"ghcr.io\/pterodactyl\/yolks:java_11j9": "ghcr.io\/pterodactyl\/yolks:java_11j9",
"ghcr.io\/pterodactyl\/yolks:java_16j9": "ghcr.io\/pterodactyl\/yolks:java_16j9",
"ghcr.io\/pterodactyl\/yolks:java_17j9": "ghcr.io\/pterodactyl\/yolks:java_17j9",
"ghcr.io\/pterodactyl\/yolks:java_18j9": "ghcr.io\/pterodactyl\/yolks:java_18j9"
},
"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 --add-modules=jdk.incubator.vector -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\r\n# shellcheck shell=dash\r\n\r\nVER_EXISTS=$(curl -s https:\/\/api.purpurmc.org\/v2\/purpur | jq -r --arg VERSION \"$MINECRAFT_VERSION\" '.versions[] | contains($VERSION)' | grep true)\r\nLATEST_VERSION=$(curl -s https:\/\/api.purpurmc.org\/v2\/purpur | jq -r '.versions' | jq -r '.[-1]')\r\n\r\nif [ \"${VER_EXISTS}\" = \"true\" ]; then\r\n printf \"Version is valid. Using version %s\\n\" \"${MINECRAFT_VERSION}\"\r\nelse\r\n printf \"Using the latest purpur version\\n\"\r\n MINECRAFT_VERSION=${LATEST_VERSION}\r\nfi\r\n\r\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)\r\nLATEST_BUILD=$(curl -s https:\/\/api.purpurmc.org\/v2\/purpur\/\"${MINECRAFT_VERSION}\" | jq -r '.builds.latest')\r\n\r\nif [ \"${BUILD_EXISTS}\" = \"true\" ]; then\r\n printf \"Build is valid for version %s. Using build %s\\n\" \"${MINECRAFT_VERSION}\" \"${BUILD_NUMBER}\"\r\nelse\r\n printf \"Using the latest purpur build for version %s\\n\" \"${MINECRAFT_VERSION}\"\r\n BUILD_NUMBER=${LATEST_BUILD}\r\nfi\r\n\r\nDOWNLOAD_URL=https:\/\/api.purpurmc.org\/v2\/purpur\/${MINECRAFT_VERSION}\/${BUILD_NUMBER}\/download\r\n\r\ncd \/mnt\/server || exit\r\nprintf \"Downloading Purpur version %s build %s\\n\" \"${MINECRAFT_VERSION}\" \"${BUILD_NUMBER}\"\r\n\r\nif [ -f \"server.jar\" ]; then\r\n mv server.jar server.jar.old\r\nfi\r\n\r\ncurl -o server.jar \"${DOWNLOAD_URL}\"\r\n\r\nprintf \"Downloading optimized configuration files\\n\"\r\n\r\nif [ ! -d \"config\" ]; then\r\n mkdir config\r\nfi\r\n\r\nif [ ! -f \"server.properties\" ]; then\r\n curl -o server.properties https:\/\/raw.githubusercontent.com\/pyrohost\/optimized-minecraft-egg\/main\/configs\/server.properties\r\nfi\r\n\r\nif [ ! -f \"bukkit.yml\" ]; then\r\n curl -o bukkit.yml https:\/\/raw.githubusercontent.com\/pyrohost\/optimized-minecraft-egg\/main\/configs\/bukkit.yml\r\nfi\r\n\r\nif [ ! -f \"spigot.yml\" ]; then\r\n curl -o spigot.yml https:\/\/raw.githubusercontent.com\/pyrohost\/optimized-minecraft-egg\/main\/configs\/spigot.yml\r\nfi\r\n\r\nif [ ! -f \"config\/paper-global.yml\" ]; then\r\n curl -o paper-global.yml https:\/\/raw.githubusercontent.com\/pyrohost\/optimized-minecraft-egg\/main\/configs\/paper-global.yml\r\nfi\r\n\r\nif [ ! -f \"config\/paper-world-defaults.yml\" ]; then\r\n curl -o paper-world-defaults.yml https:\/\/raw.githubusercontent.com\/pyrohost\/optimized-minecraft-egg\/main\/configs\/paper-world-defaults.yml\r\nfi\r\n\r\nif [ ! -f \"pufferfish.yml\" ]; then\r\n curl -o pufferfish.yml https:\/\/raw.githubusercontent.com\/pyrohost\/optimized-minecraft-egg\/main\/configs\/pufferfish.yml\r\nfi\r\n\r\nif [ ! -f \"config\/purpur.yml\" ]; then\r\n curl -o purpur.yml https:\/\/raw.githubusercontent.com\/pyrohost\/optimized-minecraft-egg\/main\/configs\/purpur.yml\r\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"
}
]
}