mirror of
https://github.com/parkervcp/eggs.git
synced 2024-11-14 22:07:22 +08:00
5d9da83f28
Add: KSP DMP Server --------- Co-authored-by: Quinten <67589015+QuintenQVD0@users.noreply.github.com>
92 lines
4.2 KiB
JSON
92 lines
4.2 KiB
JSON
{
|
|
"_comment": "DO NOT EDIT: FILE GENERATED AUTOMATICALLY BY PTERODACTYL PANEL - PTERODACTYL.IO",
|
|
"meta": {
|
|
"version": "PTDL_v2",
|
|
"update_url": null
|
|
},
|
|
"exported_at": "2023-09-22T19:54:35+02:00",
|
|
"name": "KSP DMP",
|
|
"author": "rufanyin29@gmail.com",
|
|
"description": "Dark Multiplayer mod server for Kerbal Space Program",
|
|
"features": null,
|
|
"docker_images": {
|
|
"Mono": "ghcr.io\/parkervcp\/yolks:mono_latest"
|
|
},
|
|
"file_denylist": [],
|
|
"startup": "mono DMPServer.exe",
|
|
"config": {
|
|
"files": "{\r\n \"Config\/Settings.txt\": {\r\n \"parser\": \"properties\",\r\n \"find\": {\r\n \"port\": \"{{server.build.default.port}}\",\r\n \"modpackMode\": \"{{server.build.env.MODPACKMODE}}\",\r\n \"warpMode\": \"{{server.build.env.WARPMODE}}\",\r\n \"gameMode\": \"{{server.build.env.GAMEMODE}}\",\r\n \"gameDifficulty\": \"{{server.build.env.DIFFICULTY}}\",\r\n \"whitelisted\": \"{{server.build.env.WHITELIST}}\",\r\n \"serverName\": \"{{server.build.env.SERVERNAME}}\"\r\n }\r\n }\r\n}",
|
|
"startup": "{\r\n \"done\": \"Ready!\"\r\n}",
|
|
"logs": "{}",
|
|
"stop": "\/exit"
|
|
},
|
|
"scripts": {
|
|
"installation": {
|
|
"script": "#!\/bin\/bash\r\n\r\n\r\nmkdir -p \/mnt\/server\r\ncd \/mnt\/server\r\n\r\nV=$(curl -s https:\/\/d-mp.org\/downloads | grep \"DMP Server\" | awk -F 'href=\"' 'NR==2 {print $2}' | awk -F '\"' '{print $1}') # \/builds\/release\/v0.3.8.3\/DMPServer.zip\r\n\r\necho \"Download link: https:\/\/d-mp.org${V}\"\r\ncurl -sSL -o DMPServer.zip https:\/\/d-mp.org${V}\r\n\r\nunzip -o DMPServer.zip\r\nmv DMPServer\/* .\/\r\n\r\nrm -rf DMPServer\r\nrm DMPServer.zip\r\n\r\n## install end\r\necho \"-----------------------------------------\"\r\necho \"Installation completed...\"\r\necho \"-----------------------------------------\"",
|
|
"container": "ghcr.io\/parkervcp\/installers:debian",
|
|
"entrypoint": "bash"
|
|
}
|
|
},
|
|
"variables": [
|
|
{
|
|
"name": "Mod Pack Mode",
|
|
"description": "Specify the modpack type.",
|
|
"env_variable": "MODPACKMODE",
|
|
"default_value": "NONE",
|
|
"user_viewable": true,
|
|
"user_editable": true,
|
|
"rules": "required|string|in:NONE,CKAN,GAMEDATA",
|
|
"field_type": "text"
|
|
},
|
|
{
|
|
"name": "Warp Mode",
|
|
"description": "Specify the warp type.",
|
|
"env_variable": "WARPMODE",
|
|
"default_value": "SUBSPACE",
|
|
"user_viewable": true,
|
|
"user_editable": true,
|
|
"rules": "required|string|in:MCW_FORCE,MCW_VOTE,MCW_LOWEST,SUBSPACE_SIMPLE,SUBSPACE,NONE",
|
|
"field_type": "text"
|
|
},
|
|
{
|
|
"name": "Game Mode",
|
|
"description": "Specify the game type.",
|
|
"env_variable": "GAMEMODE",
|
|
"default_value": "SANDBOX",
|
|
"user_viewable": true,
|
|
"user_editable": true,
|
|
"rules": "required|string|in:SANDBOX,CAREER,SCIENCE",
|
|
"field_type": "text"
|
|
},
|
|
{
|
|
"name": "Game Difficulty",
|
|
"description": "Specify the gameplay difficulty of the server.",
|
|
"env_variable": "DIFFICULTY",
|
|
"default_value": "NORMAL",
|
|
"user_viewable": true,
|
|
"user_editable": true,
|
|
"rules": "required|string|in:EASY,NORMAL,MODERATE,HARD,CUSTOM",
|
|
"field_type": "text"
|
|
},
|
|
{
|
|
"name": "Whitelisted",
|
|
"description": "Enable white-listing.",
|
|
"env_variable": "WHITELIST",
|
|
"default_value": "False",
|
|
"user_viewable": false,
|
|
"user_editable": false,
|
|
"rules": "required|string|in:True,False",
|
|
"field_type": "text"
|
|
},
|
|
{
|
|
"name": "Server Name",
|
|
"description": "Name of the server.",
|
|
"env_variable": "SERVERNAME",
|
|
"default_value": "DMP Server",
|
|
"user_viewable": true,
|
|
"user_editable": true,
|
|
"rules": "required|string|max:48",
|
|
"field_type": "text"
|
|
}
|
|
]
|
|
} |