始终认证 v1.0.2

飒爽师叔 · 2026-06-30 10:35

更新日志

[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/189/download/egg-always-auth.json"
    },
    "exported_at": "2025-12-24T22:04:11+00:00",
    "name": "Always Auth",
    "author": "contact@quacks.media",
    "description": "一个简单的代理,位于你的服务器和Mojang的认证服务之间,确保即使它们离线,你也能保持在线!",
    "features": null,
    "docker_images": {
        "Java 21": "registry.cn-shanghai.aliyuncs.com/pterodactyl-images/yolks:java_21"
    },
    "file_denylist": [],
    "startup": "java -Xms128M -Xmx{{SERVER_MEMORY}}M -XX:MaxRAMPercentage=95.0 -Dterminal.jline=false -Dterminal.ansi=true -jar {{JARFILE}}",
    "config": {
        "files": "{\n    \"data\\/config.properties\": {\n        \"parser\": \"properties\",\n        \"find\": {\n            \"server-ip\": \"0.0.0.0\",\n            \"server-port\": \"{{server.build.default.port}}\"\n        }\n    }\n}",
        "startup": "{\n    \"done\": \")! For help, type \"\n}",
        "logs": "[]",
        "stop": "stop"
    },
    "scripts": {
        "installation": {
            "script": "#!/bin/bash\n\necho \"======================================\"\necho \" AlwaysAuth Installer\"\necho \"======================================\"\n\nmkdir -p /mnt/server\ncd /mnt/server\n\nJAR_NAME=\"AlwaysAuth.jar\"\n\ncommand -v curl >/dev/null 2>&1 || {\n    echo \"ERROR: curl is required.\"\n    exit 1\n}\n\n# --------------------------------------\n# Resolve version\n# --------------------------------------\n\nif [ \"$VERSION\" = \"latest\" ]; then\n    echo \"Resolving latest standalone version...\"\n\n    STANDALONE_VERSION=\"$(curl -fsSL \"https://raw.githubusercontent.com/GamerDuck123/AlwaysAuth/refs/heads/master/standalone-latest.txt\" | tr -d '[:space:]')\"\n\n    if [ -z \"$STANDALONE_VERSION\" ]; then\n        echo \"ERROR: standalone-latest.txt is empty.\"\n        exit 1\n    fi\nelse\n    echo \"Using user-specified version: $VERSION\"\n    STANDALONE_VERSION=\"$VERSION\"\nfi\n\necho \"Resolved version: $STANDALONE_VERSION\"\n\n# --------------------------------------\n# Download\n# --------------------------------------\n\nDOWNLOAD_URL=\"https://github.com/GamerDuck123/AlwaysAuth/releases/download/v${STANDALONE_VERSION}/AlwaysAuth-standalone-${STANDALONE_VERSION}.jar\"\n\necho \"Download URL: $DOWNLOAD_URL\"\necho \"Downloading AlwaysAuth...\"\n\ncurl -fL \"$DOWNLOAD_URL\" -o \"$JAR_NAME\"\n\nif [ ! -f \"$JAR_NAME\" ]; then\n    echo \"ERROR: Download failed.\"\n    exit 1\nfi\n\necho \"Install completed successfully!\"\necho \"======================================\"\nexit 0\n",
            "container": "registry.cn-shanghai.aliyuncs.com/pterodactyl-images/installers:debian",
            "entrypoint": "/bin/bash"
        }
    },
    "variables": [
        {
            "name": "JAR文件",
            "description": "要使用的jar文件名称。",
            "env_variable": "JARFILE",
            "default_value": "AlwaysAuth.jar",
            "user_viewable": true,
            "user_editable": true,
            "rules": "",
            "field_type": "text"
        },
        {
            "name": "版本",
            "description": "要安装的AlwaysAuth版本。使用\"latest\"安装最新版本。",
            "env_variable": "VERSION",
            "default_value": "latest",
            "user_viewable": true,
            "user_editable": true,
            "rules": "",
            "field_type": "text"
        }
    ]
}