PADMAN世界 v1.0.2

飒爽师叔 · 2026-07-01 04:07

更新日志

[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/261/download/egg-world-of-padman.json"
    },
    "exported_at": "2026-06-09T09:27:59+00:00",
    "name": "World of PADMAN",
    "author": "bas1874@github.com",
    "description": "PADMAN世界(WoP)独立服务器。自动生成配置。",
    "features": [],
    "docker_images": {
        "Ubuntu": "registry.cn-shanghai.aliyuncs.com/pterodactyl-images/yolks:ubuntu"
    },
    "file_denylist": [],
    "startup": "./wopded +set fs_homepath . +set fs_basepath . +set fs_game {{FS_GAME}} +set dedicated {{DEDICATED_TYPE}} +set net_port {{SERVER_PORT}} +set com_hunkMegs {{SERVER_MEMORY}} +exec {{SERVER_CONFIG}}",
    "config": {
        "files": "{}",
        "startup": "{\n    \"done\": \"InitGame:\"\n}",
        "logs": "{}",
        "stop": "quit"
    },
    "scripts": {
        "installation": {
            "script": "#!/bin/bash\n# World of PADMAN Installation Script\n\n\ncd /mnt/server\n\n## get release info and download links\nLATEST_JSON=$(curl --silent \"https://api.github.com/repos/PadWorld-Entertainment/worldofpadman/releases/latest\")\nRELEASES=$(curl --silent \"https://api.github.com/repos/PadWorld-Entertainment/worldofpadman/releases\")\n\nif [ -z \"${VERSION}\" ] || [ \"${VERSION}\" == \"latest\" ]; then\n    DOWNLOAD_URL=$(echo ${LATEST_JSON} | jq .assets | jq -r .[].browser_download_url | grep -i unified.zip)\nelse\n    VERSION_CHECK=$(echo ${RELEASES} | jq -r --arg VERSION \"${VERSION}\" '.[] | select(.tag_name==$VERSION) | .tag_name')\n    if [ \"${VERSION}\" == \"${VERSION_CHECK}\" ]; then\n        DOWNLOAD_URL=$(echo ${RELEASES} | jq -r --arg VERSION \"${VERSION}\" '.[] | select(.tag_name==$VERSION) | .assets[].browser_download_url' | grep -i unified.zip)\n    else\n        echo -e \"defaulting to latest release\"\n        DOWNLOAD_URL=$(echo ${LATEST_JSON} | jq .assets | jq -r .[].browser_download_url)\n    fi\nfi\n\necho \"Downloading from ${DOWNLOAD_URL}...\"\ncurl -sSL ${DOWNLOAD_URL} -o wop.zip\n\necho \"Extracting files...\"\nunzip -q -o wop.zip\nrm wop.zip\n\n# 2. Permissions & Architecture Symlink\necho \"Setting up executables...\"\nchmod +x wopded.*\n\nARCH=$(uname -m)\nif [ \"$ARCH\" == \"aarch64\" ] || [ \"$ARCH\" == \"arm64\" ]; then\n    ln -sf wopded.aarch64 wopded\nelif [ \"$ARCH\" == \"x86_64\" ] || [ \"$ARCH\" == \"amd64\" ]; then\n    ln -sf wopded.x86_64 wopded\nelse\n    ln -sf wopded.x86 wopded\nfi\n\n# 3. Generate Config\nmkdir -p ${FS_GAME}\n\necho \"Generating ${FS_GAME}/${SERVER_CONFIG}...\"\ncat << EOF > ${FS_GAME}/${SERVER_CONFIG}\n//\n//    World of PADMAN - Panel generated server settings\n//\n\n// Server name and message\nset sv_hostName \"${SERVER_HOSTNAME}\"\nset g_MOTD      \"Welcome to World of PADMAN!\"\n\n// Server settings\nset sv_maxClients \"12\"\nset sv_VoIP       \"1\"\nset sv_maxRate    \"9000\"\n\n// Download Settings\nset sv_allowdownload \"${ALLOW_DOWNLOAD}\"\n\n// Bot settings\nset bot_enable     \"1\"\nset bot_minPlayers \"4\"\nset g_spSkill      \"2\"\n\n// Passwords\nset rconPassword \"${RCON_PASSWORD}\"\nset g_password   \"\"\n\n// Game settings\nset g_allowVote \"1\"\nset g_doWarmup  \"1\"\nset g_warmup    \"30\"\n\n// Execution of map rotation\nexec \"rotation.cfg\"\n\n// Fallback map just in case rotation fails\nmap wop_padgarden\nEOF\n\necho \"Installation complete!\"",
            "container": "registry.cn-shanghai.aliyuncs.com/pterodactyl-images/installers:debian",
            "entrypoint": "bash"
        }
    },
    "variables": [
        {
            "name": "允许下载",
            "description": "1 = 允许玩家从服务器下载地图。0 = 禁用。",
            "env_variable": "ALLOW_DOWNLOAD",
            "default_value": "1",
            "user_viewable": true,
            "user_editable": true,
            "rules": "required|boolean",
            "field_type": "text"
        },
        {
            "name": "配置文件名称",
            "description": "fs_game文件夹内的配置文件名。",
            "env_variable": "SERVER_CONFIG",
            "default_value": "server-settings.cfg",
            "user_viewable": true,
            "user_editable": true,
            "rules": "required|string",
            "field_type": "text"
        },
        {
            "name": "游戏版本",
            "description": "要下载的World of PADMAN版本(例如latest或v1.7.0)。",
            "env_variable": "VERSION",
            "default_value": "latest",
            "user_viewable": true,
            "user_editable": true,
            "rules": "required|string",
            "field_type": "text"
        },
        {
            "name": "模组文件夹 (fs_game)",
            "description": "游戏数据文件夹的名称。默认是'wop'。",
            "env_variable": "FS_GAME",
            "default_value": "wop",
            "user_viewable": true,
            "user_editable": true,
            "rules": "required|string",
            "field_type": "text"
        },
        {
            "name": "RCON密码",
            "description": "远程管理员密码。留空以禁用RCON。",
            "env_variable": "RCON_PASSWORD",
            "default_value": "",
            "user_viewable": true,
            "user_editable": true,
            "rules": "nullable|string",
            "field_type": "text"
        },
        {
            "name": "服务器主机名",
            "description": "浏览器中显示的服务器名称。",
            "env_variable": "SERVER_HOSTNAME",
            "default_value": "A World of PADMAN Server",
            "user_viewable": true,
            "user_editable": true,
            "rules": "required|string",
            "field_type": "text"
        },
        {
            "name": "服务器可见性",
            "description": "1 = 局域网, 2 = 互联网 (主服务器).",
            "env_variable": "DEDICATED_TYPE",
            "default_value": "2",
            "user_viewable": true,
            "user_editable": true,
            "rules": "required|numeric|in:1,2",
            "field_type": "text"
        }
    ]
}