-
-
Notifications
You must be signed in to change notification settings - Fork 49
/
Copy pathegg-vanilla-minecraft-mcsleepingserverstarter.json
55 lines (55 loc) · 4.93 KB
/
egg-vanilla-minecraft-mcsleepingserverstarter.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
{
"_comment": "DO NOT EDIT: FILE GENERATED AUTOMATICALLY BY PTERODACTYL PANEL - PTERODACTYL.IO",
"meta": {
"version": "PTDL_v2",
"update_url": null
},
"exported_at": "2023-06-27T20:18:37+02:00",
"name": "Vanilla Minecraft (mcsleepingserverstarter)",
"author": "[email protected]",
"description": "Minecraft is a game about placing blocks and going on adventures. Explore randomly generated worlds and build amazing things from the simplest of homes to the grandest of castles. Play in Creative Mode with unlimited resources or mine deep in Survival Mode, crafting weapons and armor to fend off dangerous mobs. Do all this alone or with friends.\r\nPut your minecraft server to rest, while SleepingServerStarter is watching !",
"features": ["eula", "java_version", "pid_limit"],
"docker_images": {
"Java 17": "ghcr.io/pterodactyl/yolks:java_17",
"Java 16": "ghcr.io/pterodactyl/yolks:java_16",
"Java 11": "ghcr.io/pterodactyl/yolks:java_11",
"Java 8": "ghcr.io/pterodactyl/yolks:java_8"
},
"file_denylist": [],
"startup": "./mcsleepingserverstarter-linux",
"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 \"query.port\": \"{{server.build.default.port}}\"\r\n }\r\n },\r\n \"sleepingSettings.yml\": {\r\n \"parser\": \"yaml\",\r\n \"find\": {\r\n \"serverPort\": \"{{server.build.default.port}}\",\r\n \"minecraftCommand\": \"java -Xms128M -XX:MaxRAMPercentage=95.0 -jar {{env.SERVER_JARFILE}}\"\r\n }\r\n }\r\n}",
"startup": "{\r\n \"done\": \")! For help, type \"\r\n}",
"logs": "{}",
"stop": "stop"
},
"scripts": {
"installation": {
"script": "#!/bin/ash\r\n# Vanilla MC Installation Script\r\n#\r\n# Server Files: /mnt/server\r\nmkdir -p /mnt/server\r\ncd /mnt/server\r\n\r\nLATEST_VERSION=`curl https://launchermeta.mojang.com/mc/game/version_manifest.json | jq -r '.latest.release'`\r\nLATEST_SNAPSHOT_VERSION=`curl https://launchermeta.mojang.com/mc/game/version_manifest.json | jq -r '.latest.snapshot'`\r\nSYSTEM_ARCHITECTURE=$([[ \"$(uname -m)\" == \"x86_64\" ]] && echo \"x64\" || echo \"arm64\")\r\n\r\necho -e \"latest version is $LATEST_VERSION\"\r\necho -e \"latest snapshot is $LATEST_SNAPSHOT_VERSION\"\r\n\r\nif [ -z \"$VANILLA_VERSION\" ] || [ \"$VANILLA_VERSION\" == \"latest\" ]; then\r\n MANIFEST_URL=$(curl -sSL https://launchermeta.mojang.com/mc/game/version_manifest.json | jq --arg VERSION $LATEST_VERSION -r '.versions | .[] | select(.id== $VERSION )|.url')\r\nelif [ \"$VANILLA_VERSION\" == \"snapshot\" ]; then\r\n MANIFEST_URL=$(curl -sSL https://launchermeta.mojang.com/mc/game/version_manifest.json | jq --arg VERSION $LATEST_SNAPSHOT_VERSION -r '.versions | .[] | select(.id== $VERSION )|.url')\r\nelse\r\n MANIFEST_URL=$(curl -sSL https://launchermeta.mojang.com/mc/game/version_manifest.json | jq --arg VERSION $VANILLA_VERSION -r '.versions | .[] | select(.id== $VERSION )|.url')\r\nfi\r\n\r\nDOWNLOAD_URL=$(curl ${MANIFEST_URL} | jq .downloads.server | jq -r '. | .url')\r\n\r\necho -e \"running: curl -o ${SERVER_JARFILE} $DOWNLOAD_URL\"\r\ncurl -o ${SERVER_JARFILE} $DOWNLOAD_URL\r\n\r\nif [ ! -f mcsleepingserverstarter-linux ]; then\r\n echo -e \"Running curl -Lo mcsleepingserverstarter-linux-${SYSTEM_ARCHITECTURE} https://github.com/vincss/mcsleepingserverstarter/releases/latest/download/mcsleepingserverstarter-linux-${SYSTEM_ARCHITECTURE}\"\r\n curl -Lo mcsleepingserverstarter-linux https://github.com/vincss/mcsleepingserverstarter/releases/latest/download/mcsleepingserverstarter-linux-${SYSTEM_ARCHITECTURE}\r\nfi\r\nchmod +x mcsleepingserverstarter-linux\r\n\r\nif [ ! -f sleepingSettings.yml ]; then\r\n echo -e \"Downloading sleepingSettings.yml\"\r\n curl -o sleepingSettings.yml https://raw.githubusercontent.com/vincss/mcsleepingserverstarter/master/sleepingSettings.yml\r\nfi\r\n\r\necho -e \"Install Complete\"",
"container": "ghcr.io/pterodactyl/installers:alpine",
"entrypoint": "ash"
}
},
"variables": [
{
"name": "Server Version",
"description": "The version of Minecraft Vanilla to install. Use \"latest\" to install the latest version, or use \"snapshot\" to install the latest snapshot. Go to Settings > Reinstall Server to apply.",
"env_variable": "VANILLA_VERSION",
"default_value": "latest",
"user_viewable": true,
"user_editable": true,
"rules": "required|string|between:3,15",
"field_type": "text"
},
{
"name": "Server Jar File",
"description": "The name of the server jarfile to run the server with.",
"env_variable": "SERVER_JARFILE",
"default_value": "server.jar",
"user_viewable": true,
"user_editable": true,
"rules": "required|regex:/^([\\w\\d._-]+)(\\.jar)$/",
"field_type": "text"
}
]
}