# yaml-language-server: $schema=https://schema.zeabur.app/template.json
apiVersion: zeabur.com/v1
kind: Template
metadata:
    name: MCJE Server
spec:
    description: Minecraft Java Edition Server with automatic version management and easy configuration
    icon: https://builditapp.com/wp-content/uploads/2022/05/Grass-Block-1.svg
    readme: |
        ### Java Edition (`itzg/minecraft-server`)

        This image supports **automatic mapping**: any key in `server.properties` can be used as an environment variable by converting it to **UPPERCASE** and replacing hyphens `-` with underscores `_`.

        #### 1. Core Container Options
        These variables control how the server starts, version downloads, and memory allocation.

        | Variable | Values / Examples | Description |
        | :--- | :--- | :--- |
        | **`EULA`** | `TRUE` | **Required**. Accept End User License Agreement. |
        | **`TYPE`** | `VANILLA`, `PAPER`, `FORGE`, `CURSEFORGE` etc. | Server type. See below for full list. |
        | **`VERSION`** | `LATEST`, `SNAPSHOT`, `1.20.1` | Game version. |
        | **`INIT_MEMORY`** | `1G`, `512M` | JVM initial heap memory (Xms). |
        | **`MEMORY`** | `2G`, `4096M` | JVM maximum heap memory (Xmx). |
        | **`JVM_OPTS`** | `-XX:+UseG1GC` | Custom Java startup parameters. |
        | **`UID` / `GID`** | `1000` | Specify user ID/group ID. |
        | **`TZ`** | `Asia/Shanghai` | Container timezone. |

        **Supported Server Types Detail:**

        | Type | Category | Description |
        | :--- | :--- | :--- |
        | `VANILLA` | Official | Standard Minecraft server provided by Mojang. |
        | `PAPER` | Plugin Server | High-performance fork of Spigot, recommended for most servers. |
        | `PURPUR` | Plugin Server | Fork of Paper with extensive configuration options for gameplay features. |
        | `FOLIA` | Plugin Server | Experimental Paper fork with regionized multithreading for high player counts. |
        | `FORGE` | Mod Server | The classic, heavy-duty mod loader for deep modifications. |
        | `NEOFORGE` | Mod Server | Modern fork of Forge (1.20.2+) with improved performance. |
        | `FABRIC` | Mod Server | Lightweight, modular mod loader known for fast updates. |
        | `QUILT` | Mod Server | Community-driven open-source fork of Fabric. |
        | `MOHIST` | Hybrid | Allows running Forge mods and Bukkit/Spigot plugins simultaneously. |
        | `CURSEFORGE` | Modpack | Downloads a specific modpack from CurseForge (requires API Key). |
        | `AUTO_CURSEFORGE`| Modpack | Automatically finds and downloads a CurseForge modpack. |
        | `MODRINTH` | Modpack | Downloads a modpack from the Modrinth platform. |

        #### 2. Mods & Plugins Management

        | Variable | Example | Description |
        | :--- | :--- | :--- |
        | **`PLUGINS`** | `http://.../p1.jar,\nhttp://.../p2.jar` | Comma or newline separated URLs for automatic plugin download. |
        | **`MODS`** | `http://.../m1.jar` | Comma or newline separated URLs for automatic mod download. |
        | **`REMOVE_OLD_MODS`**| `TRUE`, `FALSE` | Remove old mods on startup (recommended for sync). |
        | **`REMOVE_OLD_MODS_DEPTH`**| `1` | Directory depth for old mod removal. |
        | **`EXCLUDE_MODS`** | `optifine` | Exclude mods from list (regex match). |
        | **`MODPACK`** | `http://.../pack.zip` | Generic modpack download link. |

        #### 3. Modpack Platforms (CurseForge / Modrinth)

        | Variable | Description |
        | :--- | :--- |
        | **`CF_API_KEY`** | **Required**. CurseForge Core API Key (must apply separately). |
        | **`CF_SLUG`** | Pack name from CF URL (e.g., `rlcraft`). |
        | **`CF_FILE_ID`** | Specific file ID (leave empty for latest). |
        | **`MODRINTH_SLUG`**| Modrinth platform modpack ID. |
        | **`MODRINTH_VERSION_ID`**| Modrinth specific version ID. |

        #### 4. `server.properties` Mapping (Common Complete Set)
        These variables directly modify `server.properties`. If not listed, use the "UPPERCASE+underscore" rule.

        | Environment Variable | server.properties | Values | Description |
        | :--- | :--- | :--- | :--- |
        | `MOTD` | motd | String | Server title message. |
        | `LEVEL_NAME` | level-name | String | World folder name. |
        | `LEVEL_SEED` | level-seed | Random string | Map seed. |
        | `DIFFICULTY` | difficulty | `peaceful`, `easy`, `normal`, `hard` | Difficulty level. |
        | `GAMEMODE` | gamemode | `survival`, `creative`, `adventure`, `spectator` | Default game mode. |
        | `PVP` | pvp | `true`, `false` | Allow player vs player combat. |
        | `MAX_PLAYERS` | max-players | `20` | Maximum player count. |
        | `ONLINE_MODE` | online-mode | `true`, `false` | Online authentication (`false` = offline mode). |
        | `VIEW_DISTANCE` | view-distance | `10` | View distance (chunks). |
        | `SIMULATION_DISTANCE`| simulation-distance | `10` | Simulation distance (1.18+). |
        | `ALLOW_FLIGHT` | allow-flight | `true`, `false` | Allow flight (anti-cheat). |
        | `ALLOW_NETHER` | allow-nether | `true`, `false` | Enable Nether dimension. |
        | `WHITE_LIST` | white-list | `true`, `false` | Enable whitelist. |
        | `ENFORCE_WHITELIST`| enforce-whitelist | `true`, `false` | Force online players to be whitelisted. |
        | `GENERATE_STRUCTURES`| generate-structures | `true`, `false` | Generate villages/dungeons. |
        | `HARDCORE` | hardcore | `true`, `false` | Hardcore mode (ban on death). |
        | `SNOOPER_ENABLED` | snooper-enabled | `true`, `false` | Data collection. |
        | `ENABLE_COMMAND_BLOCK`| enable-command-block | `true`, `false` | Enable command blocks. |
        | `SPAWN_PROTECTION` | spawn-protection | `16` | Spawn point protection radius. |
        | `FORCE_GAMEMODE` | force-gamemode | `true`, `false` | Force reset mode on player rejoin. |

        #### 5. Running Server Commands via Console (RCON)
        **RCON is enabled by default** in this image with a randomly generated password for security. You can execute Minecraft commands directly through the built-in RCON client without exposing external ports.

        **How to use:**
        1. Open the Zeabur service console page
        2. Click the **Command** button in the console toolbar
        3. Type `rcon-cli` and press Enter to start an interactive RCON session
        4. Now you can execute any Minecraft server command, such as:
           - `list` — Show online players
           - `whitelist add <player>` — Add player to whitelist
           - `time set day` — Set time to daytime
           - `op <player>` — Grant operator privileges

        **Note:** To exit RCON, type `quit` or press Ctrl+C. Do not expose RCON port 25575 externally unless you have set a secure `RCON_PASSWORD`.

        #### 6. Start Container Without Starting Server (For File Management)
        If you need to use Zeabur's file manager to modify configurations or upload files without launching the Minecraft server, you can keep the container running idle.

        **How to configure:**
        1. Go to the service's **Settings** in Zeabur
        2. Find the **Startup Command** field
        3. Enter `sleep infinity` (or `sleep 365d` if your environment requires a specific duration)
        4. Save and redeploy/restart the service
        5. The container will now stay online without starting the game server — you can safely access `/data` via the file manager

        **Important:** After finishing file operations, remember to clear or restore the default startup command so the server can launch normally on next restart.
    services:
        - name: MCJE Server
          icon: https://builditapp.com/wp-content/uploads/2022/05/Grass-Block-1.svg
          template: PREBUILT_V2
          spec:
            id: mcje-server
            source:
                image: itzg/minecraft-server:latest
            ports:
                - id: minecraft
                  port: 25565
                  type: TCP
            volumes:
                - id: data
                  dir: /data
            env:
                EULA:
                    default: "TRUE"
                INIT_MEMORY:
                    default: 512M
                MEMORY:
                    default: 2G
                TYPE:
                    default: VANILLA
                TZ:
                    default: Asia/Shanghai
                VERSION:
                    default: LATEST
            portForwarding:
                enabled: true
localization:
    zh-CN:
        description: Minecraft Java版服务器，支持自动版本管理和简易配置
        readme: |
            ### Java 版 (`itzg/minecraft-server`)

            此镜像支持**自动映射**机制：任何 `server.properties` 中的键，只要转为**大写**并把横杠 `-` 换成下划线 `_`，即可作为环境变量使用。

            #### 1. 核心容器控制 (Container Options)
            这些变量控制服务器如何启动、下载什么版本、使用多少内存等。

            | 变量名 | 可选值 / 示例 | 说明 |
            | :--- | :--- | :--- |
            | **`EULA`** | `TRUE` | **必须**。同意最终用户协议。 |
            | **`TYPE`** | `VANILLA`, `PAPER`, `FORGE`, `CURSEFORGE` 等 | 服务器类型。完整列表见下方。|
            | **`VERSION`** | `LATEST`, `SNAPSHOT`, `1.20.1` | 游戏版本。 |
            | **`INIT_MEMORY`** | `1G`, `512M` | JVM 初始堆内存 (Xms)。 |
            | **`MEMORY`** | `2G`, `4096M` | JVM 最大堆内存 (Xmx)。 |
            | **`JVM_OPTS`** | `-XX:+UseG1GC` | 自定义 Java 启动参数。 |
            | **`UID` / `GID`** | `1000` | 指定运行用户的 ID/组 ID。 |
            | **`TZ`** | `Asia/Shanghai` | 容器时区。 |

            **支持的服务器类型详情：**

            | 类型 | 分类 | 说明 |
            | :--- | :--- | :--- |
            | `VANILLA` | 官方原版 | Mojang 提供的标准 Minecraft 服务器。 |
            | `PAPER` | 插件端 | Spigot 的高性能分支，推荐大多数服务器使用。 |
            | `PURPUR` | 插件端 | Paper 的分支，提供大量额外的游戏性配置选项。 |
            | `FOLIA` | 插件端 | Paper 的实验性分支，支持区域化多线程（适合超多人数）。 |
            | `FORGE` | 模组端 | 经典的重型模组加载器，支持深度游戏修改。 |
            | `NEOFORGE` | 模组端 | Forge 的现代化分支 (1.20.2+)，性能更佳。 |
            | `FABRIC` | 模组端 | 轻量级、模块化的模组加载器，更新速度快。 |
            | `QUILT` | 模组端 | Fabric 的社区驱动开源分支。 |
            | `MOHIST` | 混合端 | 允许同时运行 Forge 模组和 Bukkit/Spigot 插件。 |
            | `CURSEFORGE` | 整合包 | 下载指定的 CurseForge 整合包 (需要 API Key)。 |
            | `AUTO_CURSEFORGE`| 整合包 | 自动搜索并下载最匹配的 CurseForge 整合包。 |
            | `MODRINTH` | 整合包 | 从 Modrinth 平台下载整合包。 |

            #### 2. 插件与模组管理 (Mods & Plugins)

            | 变量名 | 示例 | 说明 |
            | :--- | :--- | :--- |
            | **`PLUGINS`** | `http://.../p1.jar,\nhttp://.../p2.jar` | 逗号或换行分隔的 URL，自动下载插件。 |
            | **`MODS`** | `http://.../m1.jar` | 逗号或换行分隔的 URL，自动下载模组。 |
            | **`REMOVE_OLD_MODS`**| `TRUE`, `FALSE` | 启动时是否删除旧模组（推荐开启以保持同步）。 |
            | **`REMOVE_OLD_MODS_DEPTH`**| `1` | 删除旧模组的目录深度。 |
            | **`EXCLUDE_MODS`** | `optifine` | 即使在列表中也排除的模组（正则匹配）。 |
            | **`MODPACK`** | `http://.../pack.zip` | 通用整合包下载链接。 |

            #### 3. 整合包平台专用 (CurseForge / Modrinth)

            | 变量名 | 说明 |
            | :--- | :--- |
            | **`CF_API_KEY`** | **必须**。CurseForge Core API Key（需自行申请）。 |
            | **`CF_SLUG`** | 整合包在 CF 网址上的名称（如 `rlcraft`）。 |
            | **`CF_FILE_ID`** | 指定具体的文件 ID（不填则下载最新）。 |
            | **`MODRINTH_SLUG`**| Modrinth 平台的整合包 ID。 |
            | **`MODRINTH_VERSION_ID`**| Modrinth 具体版本 ID。 |

            #### 4. `server.properties` 映射 (常用全集)
            以下变量直接修改 `server.properties`。如果这里没列出，你依然可以按照"大写+下划线"规则自行添加。

            | 环境变量 (大写) | 对应 server.properties | 可选值 | 说明 |
            | :--- | :--- | :--- | :--- |
            | `MOTD` | motd | 字符串 | 服务器标题信息。 |
            | `LEVEL_NAME` | level-name | 字符串 | 存档文件夹名称。 |
            | `LEVEL_SEED` | level-seed | 随机字符 | 地图种子。 |
            | `DIFFICULTY` | difficulty | `peaceful`, `easy`, `normal`, `hard` | 难度。 |
            | `GAMEMODE` | gamemode | `survival`, `creative`, `adventure`, `spectator` | 默认游戏模式。 |
            | `PVP` | pvp | `true`, `false` | 是否允许玩家互殴。 |
            | `MAX_PLAYERS` | max-players | `20` | 最大玩家数。 |
            | `ONLINE_MODE` | online-mode | `true`, `false` | 正版验证 (`false` 为离线模式)。 |
            | `VIEW_DISTANCE` | view-distance | `10` | 视距 (Chunks)。 |
            | `SIMULATION_DISTANCE`| simulation-distance | `10` | 模拟距离 (1.18+)。 |
            | `ALLOW_FLIGHT` | allow-flight | `true`, `false` | 是否允许飞行 (防作弊用)。 |
            | `ALLOW_NETHER` | allow-nether | `true`, `false` | 是否开启地狱。 |
            | `WHITE_LIST` | white-list | `true`, `false` | 是否开启白名单。 |
            | `ENFORCE_WHITELIST`| enforce-whitelist | `true`, `false` | 强制在线玩家必须在白名单。 |
            | `GENERATE_STRUCTURES`| generate-structures | `true`, `false` | 是否生成村庄/地牢。 |
            | `HARDCORE` | hardcore | `true`, `false` | 极限模式 (死后封禁)。 |
            | `SNOOPER_ENABLED` | snooper-enabled | `true`, `false` | 数据采集。 |
            | `ENABLE_COMMAND_BLOCK`| enable-command-block | `true`, `false` | 是否启用命令方块。 |
            | `SPAWN_PROTECTION` | spawn-protection | `16` | 出生点保护半径。 |
            | `FORCE_GAMEMODE` | force-gamemode | `true`, `false` | 玩家重连是否强制重置模式。 |

            #### 5. 在控制台执行服务器命令（RCON）
            **本镜像默认已启用 RCON**，并在每次启动时自动生成随机密码以保障安全。你可以直接通过容器内置的 RCON 客户端发送命令，无需对外暴露端口。

            **使用方法：**
            1. 在 Zeabur 项目中进入该服务的控制台页面
            2. 点击控制台工具栏中的 **命令（Command）** 按钮
            3. 输入 `rcon-cli` 并回车，即可进入交互式 RCON 环境
            4. 接下来可直接输入任意 Minecraft 服务器命令，例如：
                - `list` — 查看在线玩家
                - `whitelist add <玩家名>` — 添加白名单
                - `time set day` — 设置为白天
                - `op <玩家名>` — 授予管理员权限

            **提示：** 输入 `quit` 或按 Ctrl+C 即可退出 RCON。除非已设置安全的 `RCON_PASSWORD`，否则请勿将 RCON 端口 25575 暴露到公网。

            #### 6. 仅启动容器而不启动服务器（用于文件管理）
            当你只想使用 Zeabur 的文件管理器修改配置或上传文件，但暂时不需要启动 Minecraft 服务器时，可以让容器保持空转状态。

            **配置步骤：**
            1. 前往 Zeabur 中该服务的 **设置（Settings）** 页面
            2. 找到 **启动命令（Startup Command）** 配置项
            3. 输入 `sleep infinity`（如环境要求可改用 `sleep 365d`）
            4. 保存并重新部署/重启服务
            5. 此时容器会保持在线但不启动游戏服务器，你可以安全地通过文件管理器操作 `/data` 目录

            **注意：** 文件操作完成后，务必清空或恢复启动命令为默认值，否则下次重启时服务器仍不会自动启动。
    zh-TW:
        description: Minecraft Java版伺服器，支援自動版本管理及簡易設定
        readme: |
            ### Java 版 (`itzg/minecraft-server`)

            此映像支援**自動映射**機制：任何 `server.properties` 中的鍵，只要轉為**大寫**並把橫槓 `-` 換成底線 `_`，即可作為環境變數使用。

            #### 1. 核心容器控制 (Container Options)
            這些變數控制伺服器如何啟動、下載什麼版本、使用多少記憶體等。

            | 變數名 | 可選值 / 範例 | 說明 |
            | :--- | :--- | :--- |
            | **`EULA`** | `TRUE` | **必須**。同意最終使用者協議。 |
            | **`TYPE`** | `VANILLA`, `PAPER`, `FORGE`, `CURSEFORGE` 等 | 伺服器類型。完整列表見下方。|
            | **`VERSION`** | `LATEST`, `SNAPSHOT`, `1.20.1` | 遊戲版本。 |
            | **`INIT_MEMORY`** | `1G`, `512M` | JVM 初始堆記憶體 (Xms)。 |
            | **`MEMORY`** | `2G`, `4096M` | JVM 最大堆記憶體 (Xmx)。 |
            | **`JVM_OPTS`** | `-XX:+UseG1GC` | 自訂 Java 啟動參數。 |
            | **`UID` / `GID`** | `1000` | 指定執行使用者的 ID/組 ID。 |
            | **`TZ`** | `Asia/Shanghai` | 容器時區。 |

            **支援的伺服器類型詳情：**

            | 類型 | 分類 | 說明 |
            | :--- | :--- | :--- |
            | `VANILLA` | 官方原版 | Mojang 提供的標準 Minecraft 伺服器。 |
            | `PAPER` | 插件端 | Spigot 的高效能分支，推薦大多數伺服器使用。 |
            | `PURPUR` | 插件端 | Paper 的分支，提供大量額外的遊戲性設定選項。 |
            | `FOLIA` | 插件端 | Paper 的實驗性分支，支援區域化多執行緒（適合超多人數）。 |
            | `FORGE` | 模組端 | 經典的重型模組載入器，支援深度遊戲修改。 |
            | `NEOFORGE` | 模組端 | Forge 的現代化分支 (1.20.2+)，效能更佳。 |
            | `FABRIC` | 模組端 | 輕量級、模組化的模組載入器，更新速度快。 |
            | `QUILT` | 模組端 | Fabric 的社群驅動開源分支。 |
            | `MOHIST` | 混合端 | 允許同時執行 Forge 模組和 Bukkit/Spigot 外掛。 |
            | `CURSEFORGE` | 整合包 | 下載指定的 CurseForge 整合包 (需要 API Key)。 |
            | `AUTO_CURSEFORGE`| 整合包 | 自動搜尋並下載最匹配的 CurseForge 整合包。 |
            | `MODRINTH` | 整合包 | 從 Modrinth 平台下載整合包。 |

            #### 2. 外掛與模組管理 (Mods & Plugins)

            | 變數名 | 範例 | 說明 |
            | :--- | :--- | :--- |
            | **`PLUGINS`** | `http://.../p1.jar,\nhttp://.../p2.jar` | 逗號或換行分隔的 URL，自動下載外掛。 |
            | **`MODS`** | `http://.../m1.jar` | 逗號或換行分隔的 URL，自動下載模組。 |
            | **`REMOVE_OLD_MODS`**| `TRUE`, `FALSE` | 啟動時是否刪除舊模組（建議開啟以保持同步）。 |
            | **`REMOVE_OLD_MODS_DEPTH`**| `1` | 刪除舊模組的目錄深度。 |
            | **`EXCLUDE_MODS`** | `optifine` | 即使在清單中也排除的模組（正規表示式比對）。 |
            | **`MODPACK`** | `http://.../pack.zip` | 通用整合包下載連結。 |

            #### 3. 整合包平台專用 (CurseForge / Modrinth)

            | 變數名 | 說明 |
            | :--- | :--- |
            | **`CF_API_KEY`** | **必須**。CurseForge Core API Key（需自行申請）。 |
            | **`CF_SLUG`** | 整合包在 CF 網址上的名稱（如 `rlcraft`）。 |
            | **`CF_FILE_ID`** | 指定具體的檔案 ID（不填則下載最新）。 |
            | **`MODRINTH_SLUG`**| Modrinth 平台的整合包 ID。 |
            | **`MODRINTH_VERSION_ID`**| Modrinth 具體版本 ID。 |

            #### 4. `server.properties` 映射 (常用全集)
            以下變數直接修改 `server.properties`。如果這裡沒列出，你依然可以按照「大寫+底線」規則自行新增。

            | 環境變數 (大寫) | 對應 server.properties | 可選值 | 說明 |
            | :--- | :--- | :--- | :--- |
            | `MOTD` | motd | 字串 | 伺服器標題資訊。 |
            | `LEVEL_NAME` | level-name | 字串 | 存檔資料夾名稱。 |
            | `LEVEL_SEED` | level-seed | 隨機字元 | 地圖種子。 |
            | `DIFFICULTY` | difficulty | `peaceful`, `easy`, `normal`, `hard` | 難度。 |
            | `GAMEMODE` | gamemode | `survival`, `creative`, `adventure`, `spectator` | 預設遊戲模式。 |
            | `PVP` | pvp | `true`, `false` | 是否允許玩家互毆。 |
            | `MAX_PLAYERS` | max-players | `20` | 最大玩家數。 |
            | `ONLINE_MODE` | online-mode | `true`, `false` | 正版驗證 (`false` 為離線模式)。 |
            | `VIEW_DISTANCE` | view-distance | `10` | 視距 (Chunks)。 |
            | `SIMULATION_DISTANCE`| simulation-distance | `10` | 模擬距離 (1.18+)。 |
            | `ALLOW_FLIGHT` | allow-flight | `true`, `false` | 是否允許飛行 (防作弊用)。 |
            | `ALLOW_NETHER` | allow-nether | `true`, `false` | 是否開啟地獄。 |
            | `WHITE_LIST` | white-list | `true`, `false` | 是否開啟白名單。 |
            | `ENFORCE_WHITELIST`| enforce-whitelist | `true`, `false` | 強制線上玩家必須在白名單。 |
            | `GENERATE_STRUCTURES`| generate-structures | `true`, `false` | 是否生成村莊/地牢。 |
            | `HARDCORE` | hardcore | `true`, `false` | 極限模式 (死後封禁)。 |
            | `SNOOPER_ENABLED` | snooper-enabled | `true`, `false` | 資料採集。 |
            | `ENABLE_COMMAND_BLOCK`| enable-command-block | `true`, `false` | 是否啟用命令方塊。 |
            | `SPAWN_PROTECTION` | spawn-protection | `16` | 出生點保護半徑。 |
            | `FORCE_GAMEMODE` | force-gamemode | `true`, `false` | 玩家重連是否強制重置模式。 |

            #### 5. 在控制台執行伺服器指令（RCON）
            **本映像預設已啟用 RCON**，並在每次啟動時自動產生隨機密碼以保障安全。你可以直接透過容器內建的 RCON 用戶端發送指令，無需對外暴露連接埠。

            **使用方法：**
            1. 在 Zeabur 專案中進入該服務的控制台頁面
            2. 點擊控制台工具列中的 **命令（Command）** 按鈕
            3. 輸入 `rcon-cli` 並送出，即可進入互動式 RCON 環境
            4. 接下來可直接輸入任意 Minecraft 伺服器指令，例如：
                - `list` — 查看線上玩家
                - `whitelist add <玩家名>` — 新增白名單
                - `time set day` — 設定為白天
                - `op <玩家名>` — 授予管理員權限

            **提示：** 輸入 `quit` 或按 Ctrl+C 即可退出 RCON。除非已設定安全的 `RCON_PASSWORD`，否則請勿將 RCON 連接埠 25575 暴露到公網。

            #### 6. 僅啟動容器而不啟動伺服器（用於檔案管理）
            當你只想使用 Zeabur 的檔案管理器修改設定或上傳檔案，但暫時不需要啟動 Minecraft 伺服器時，可以讓容器保持空轉狀態。

            **設定步驟：**
            1. 前往 Zeabur 中該服務的 **設定（Settings）** 頁面
            2. 找到 **啟動命令（Startup Command）** 欄位
            3. 輸入 `sleep infinity`（如環境要求可改用 `sleep 365d`）
            4. 儲存並重新部署/重啟服務
            5. 此時容器會保持在線但不啟動遊戲伺服器，你可以安全地透過檔案管理器操作 `/data` 目錄

            **注意：** 檔案操作完成後，務必清空或恢復啟動命令為預設值，否則下次重啟時伺服器仍不會自動啟動。
