-
Notifications
You must be signed in to change notification settings - Fork 38
/
egg-pterodactyl-krypton.json
60 lines (60 loc) · 2.9 KB
/
egg-pterodactyl-krypton.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
{
"_comment": "DO NOT EDIT: FILE GENERATED AUTOMATICALLY BY PANEL",
"meta": {
"update_url": null,
"version": "PTDL_v2"
},
"exported_at": "2024-06-01T19:39:47+00:00",
"name": "Krypton",
"author": "callum.seabrook@prevarinite.com",
"description": "A fast, lightweight Minecraft server written in Kotlin",
"features": [
"eula",
"java_version",
"pid_limit"
],
"docker_images": {
"Java 11": "ghcr.io/pterodactyl/yolks:java_11",
"Java 16": "ghcr.io/pterodactyl/yolks:java_16",
"Java 17": "ghcr.io/pterodactyl/yolks:java_17",
"Java 18": "ghcr.io/pterodactyl/yolks:java_18",
"Java 8": "ghcr.io/pterodactyl/yolks:java_8"
},
"file_denylist": [],
"startup": "java -Xms128M -Xmx{{SERVER_MEMORY}}M -Dterminal.jline=false -Dterminal.ansi=true -jar {{SERVER_JAR}}",
"config": {
"files": "{\r\n \"config.conf\": {\r\n \"parser\": \"file\",\r\n \"find\": {\r\n \" port\": \" port = {{server.build.default.port}}\",\r\n \" ip\": \" ip = \\\"0.0.0.0\\\"\"\r\n }\r\n }\r\n}",
"logs": "{\r\n \"custom\": false,\r\n \"location\": \"logs/latest.log\"\r\n}",
"startup": "{\r\n \"done\": \")! Type \\\"help\\\" for help.\"\r\n}",
"stop": "stop"
},
"scripts": {
"installation": {
"container": "ghcr.io/parkervcp/installers:debian",
"entrypoint": "bash",
"script": "#!/bin/bash\r\n#\r\n# Krypton installation script for Pterodactyl\r\n# Created by BomBardyGamer\r\n#\r\n# Server Files: /mnt/server\r\n\r\napt-get update\r\napt-get install -y curl jq unzip\r\n\r\ncd /mnt/server\r\nif [ -z \"${KRYPTON_VERSION}\" ] || [ \"${KRYPTON_VERSION}\" == \"latest\" ]; then\r\n KRYPTON_VERSION=\"lastSuccessfulBuild\"\r\nfi\r\n\r\nBASE_URL=\"https://ci.kryptonmc.org/job/Krypton/${KRYPTON_VERSION}\"\r\nARTIFACT=`curl \"${BASE_URL}/api/json?tree=artifacts%5BrelativePath%5D\" | jq '.artifacts[0].relativePath' | sed 's/\"//g'`\r\n\r\ncurl -o ${SERVER_JAR} ${BASE_URL}/artifact/${ARTIFACT}\r\nunzip ${SERVER_JAR} \"config.conf\""
}
},
"variables": [
{
"name": "Server JAR File",
"description": "The name of the server JAR to run the server with.",
"env_variable": "SERVER_JAR",
"default_value": "Krypton.jar",
"user_viewable": true,
"user_editable": true,
"rules": "required|string|max:20",
"field_type": "text"
},
{
"name": "Krypton Version",
"description": "The version of Krypton to download and use.",
"env_variable": "KRYPTON_VERSION",
"default_value": "latest",
"user_viewable": true,
"user_editable": true,
"rules": "required|alpha_num|between:1,6",
"field_type": "text"
}
]
}