BeamMP服务器 v1.0.1

飒爽师叔 · 2026-07-01 03:56

更新日志

[AI翻译] 名称、描述、说明、JSON描述、变量

版本内容

{
    "_comment": "DO NOT EDIT: FILE GENERATED AUTOMATICALLY BY PTERODACTYL PANEL - PTERODACTYL.IO",
    "meta": {
        "version": "PTDL_v2",
        "update_url": "https://eggs.pterodactyl.top/eggs/202/download/egg-beammp-servers.json"
    },
    "exported_at": "2024-08-03T06:04:16+02:00",
    "name": "BeamMP Servers",
    "author": "noah@noahserver.online",
    "description": "这是游戏BeamNG.drive的多人模组BeamMP的服务器。服务器是所有客户端通信的枢纽。你可以为服务器编写Lua模组,详细说明请参见BeamMP Wiki。",
    "features": null,
    "docker_images": {
        "Debian": "registry.cn-shanghai.aliyuncs.com/pterodactyl-images/yolks:debian"
    },
    "file_denylist": [],
    "startup": "./BeamMP-Server",
    "config": {
        "files": "{\r\n    \"ServerConfig.toml\": {\r\n        \"parser\": \"file\",\r\n        \"find\": {\r\n            \"Name =\": \"Name = \\\"{{env.NAME}}\\\"\",\r\n            \"Port =\": \"Port = {{server.build.default.port}}\",\r\n            \"AuthKey =\": \"AuthKey = \\\"{{env.AUTHKEY}}\\\"\",\r\n            \"Private =\": \"Private = {{env.PRIVATE}}\",\r\n            \"MaxPlayers =\": \"MaxPlayers = {{server.build.env.MAX_PLAYERS}}\",\r\n            \"Description =\": \"Description = \\\"{{env.DESCRIPTION}}\\\"\",\r\n            \"MaxCars =\": \"MaxCars = {{env.MAX_CARS}}\",\r\n            \"Map =\": \"Map = \\\"{{env.MAP}}\\\"\",\r\n            \"LogChat =\": \"LogChat = {{env.LOGCHAT}}\"\r\n        }\r\n    }\r\n}",
        "startup": "{\r\n    \"done\": \"[INFO] Vehicle data network online\"\r\n}",
        "logs": "{}",
        "stop": "exit"
    },
    "scripts": {
        "installation": {
            "script": "#!/bin/bash\r\n#Create the server directory\r\nmkdir -p /mnt/server\r\ncd /mnt/server\r\n\r\n#Remove any old versions\r\nrm -f BeamMP-Server\r\n\r\n#Check for latest release & download URLs\r\nLATEST_JSON=$(curl --silent \"https://api.github.com/repos/BeamMP/BeamMP-Server/releases/latest\")\r\nRELEASES=$(curl --silent \"https://api.github.com/repos/BeamMP/BeamMP-Server/releases\")\r\nMATCH=$([[ \"$(uname -m)\" == \"x86_64\" ]] && echo \"Server.debian.12.x86_64\" || echo \"Server.debian.12.arm64\")\r\n\r\nif [ -z \"${VERSION}\" ] || [ \"${VERSION}\" == \"latest\" ]; then\r\n    echo -e \"Using latest BeamMP server version\"\r\n    DOWNLOAD_URL=$(echo ${LATEST_JSON} | jq .assets | jq -r .[].browser_download_url | grep -i \"${MATCH}\" | head -1)\r\nelse\r\n    echo -e \"Chosen version :${VERSION}. Verifying version from releases\"\r\n    VERSION_CHECK=$(echo ${RELEASES} | jq -r --arg VERSION \"${VERSION}\" '.[] | select(.tag_name==$VERSION) | .tag_name')\r\n    if [ \"${VERSION}\" == \"${VERSION_CHECK}\" ]; then\r\n        DOWNLOAD_URL=$(echo ${RELEASES} | jq -r --arg VERSION \"${VERSION}\" '.[] | select(.tag_name==$VERSION) | .assets[].browser_download_url' | grep -i \"${MATCH}\" | head -1)\r\n    else\r\n        echo -e \"No valid versions found. Defaulting to the latest release\"\r\n        DOWNLOAD_URL=$(echo ${LATEST_JSON} | jq .assets | jq -r .[].browser_download_url | grep -i \"Server\" | grep -i \"debian\" | grep -i \"12\" |  grep -i \"x\" | grep -i \"64\" | head -1)\r\n    fi\r\nfi\r\n\r\n#Download the BeamMP server binary\r\necho -e \"Running curl -sSL ${DOWNLOAD_URL} -o BeamMP-Server\"\r\ncurl -sSL ${DOWNLOAD_URL} -o BeamMP-Server\r\nchmod +x BeamMP-Server\r\n\r\n#Create a default configuration file\r\ncat > ServerConfig.toml << EOF\r\n# This is the BeamMP-Server config file.\r\n# Help & Documentation: https://wiki.beammp.com/en/home/server-maintenance\r\n# IMPORTANT: Fill in the AuthKey with the key you got from https://keymaster.beammp.com/ on the left under 'Keys'\r\n\r\n[General]\r\nName = 'BeamMP Server'\r\nPort = 30814\r\n# AuthKey has to be filled out in order to run the server\r\nAuthKey = ''\r\n# Whether to log chat messages in the console / log\r\nLogChat = true\r\n# Add custom identifying tags to your server to make it easier to find. Format should be TagA,TagB,TagC. Note the comma seperation.\r\nTags = 'Freeroam'\r\nDebug = false\r\nPrivate = true\r\nMaxCars = 1\r\nMaxPlayers = 8\r\nMap = '/levels/gridmap_v2/info.json'\r\nDescription = 'BeamMP Default Description'\r\nResourceFolder = 'Resources'\r\n\r\n[Misc]\r\n# Hides the periodic update message which notifies you of a new server version. You should really keep this on and always update as soon as possible. For more information visit https://wiki.beammp.com/en/home/server-maintenance#updating-the-server. An update message will always appear at startup regardless.\r\nImScaredOfUpdates = false\r\n# You can turn on/off the SendErrors message you get on startup here\r\nSendErrorsShowMessage = true\r\n# If SendErrors is 'true', the server will send helpful info about crashes and other issues back to the BeamMP developers. This info may include your config, who is on your server at the time of the error, and similar general information. This kind of data is vital in helping us diagnose and fix issues faster. This has no impact on server performance. You can opt-out of this system by setting this to 'false'\r\nSendErrors = true\r\n\r\nEOF\r\n\r\n\r\necho \"-----------------------------------------\"\r\necho \"Installation completed...\"\r\necho \"-----------------------------------------\"",
            "container": "registry.cn-shanghai.aliyuncs.com/pterodactyl-images/installers:debian",
            "entrypoint": "bash"
        }
    },
    "variables": [
        {
            "name": "服务器名称",
            "description": "你的服务器名称。它将显示在服务器列表中。",
            "env_variable": "NAME",
            "default_value": "BeamMP Server",
            "user_viewable": true,
            "user_editable": true,
            "rules": "required|string|max:128",
            "field_type": "text"
        },
        {
            "name": "服务器描述",
            "description": "设置服务器描述",
            "env_variable": "DESCRIPTION",
            "default_value": "BeamMP Default Description",
            "user_viewable": true,
            "user_editable": true,
            "rules": "required|string|max:128",
            "field_type": "text"
        },
        {
            "name": "BeamMP 服务器版本",
            "description": "将要安装的 BeamMP 服务器版本。若指定最新版本或无效版本,则默认使用最新版。请参阅 https://github.com/BeamMP/BeamMP-Server/releases 查看所有可用版本\n\n示例:v3.1.0 或 v2.2.0 或 latest",
            "env_variable": "VERSION",
            "default_value": "latest",
            "user_viewable": true,
            "user_editable": true,
            "rules": "required|string|max:12",
            "field_type": "text"
        },
        {
            "name": "身份验证密钥",
            "description": "服务器验证密钥。可以从BeamMP keymaster获取密钥,访问https://keymaster.beammp.com",
            "env_variable": "AUTHKEY",
            "default_value": "",
            "user_viewable": true,
            "user_editable": true,
            "rules": "required|string|max:64",
            "field_type": "text"
        },
        {
            "name": "最大玩家数",
            "description": "服务器允许的最大玩家数量。",
            "env_variable": "MAX_PLAYERS",
            "default_value": "6",
            "user_viewable": true,
            "user_editable": true,
            "rules": "required|integer|max:100",
            "field_type": "text"
        },
        {
            "name": "私有的",
            "description": "服务器应该是私有的吗?",
            "env_variable": "PRIVATE",
            "default_value": "false",
            "user_viewable": true,
            "user_editable": true,
            "rules": "required|string|in:true,false",
            "field_type": "text"
        },
        {
            "name": "最大汽车数",
            "description": "每个玩家允许生成的汽车最大数量。",
            "env_variable": "MAX_CARS",
            "default_value": "1",
            "user_viewable": true,
            "user_editable": true,
            "rules": "required|integer|max:10",
            "field_type": "text"
        },
        {
            "name": "地图",
            "description": "你的服务器的地图。以下列出了默认地图。\n\n/levels/gridmap_v2/info.json\n/levels/automation_test_track/info.json\n/levels/east_coast_usa/info.json\n/levels/hirochi_raceway/info.json\n/levels/italy/info.json\n/levels/jungle_rock_island/info.json\n/levels/industrial/info.json\n/levels/small_island/info.json\n/levels/smallgrid/info.json\n/levels/utah/info.json\n/levels/west_coast_usa/info.json\n/levels/driver_training/info.json\n/levels/derby/info.json",
            "env_variable": "MAP",
            "default_value": "/levels/gridmap_v2/info.json",
            "user_viewable": true,
            "user_editable": true,
            "rules": "required|string|max:64",
            "field_type": "text"
        },
        {
            "name": "聊天日志",
            "description": "启用服务器聊天记录",
            "env_variable": "LOGCHAT",
            "default_value": "true",
            "user_viewable": true,
            "user_editable": true,
            "rules": "required|string|in:true,false",
            "field_type": "text"
        }
    ]
}