跳至內容

伺服器授權

與傳統的 Minecraft 伺服器不同,Hytale 伺服器每次啟動時都需要與主伺服器進行安全驗證。這確保您的伺服器經過驗證並能接受玩家。

授權流程

當您在控制面板按下 Start (啟動) 時,伺服器會進行初始化,然後暫停等待您的輸入。

  1. 前往 Console (控制台) 標籤。
  2. 尋找類似 Please authorize this server by running /auth login device 的訊息。
  3. 在控制台輸入欄中輸入或貼上以下指令:
    /auth login device
  4. 您將看到類似以下的輸出:
    [HytaleServer] No server tokens configured. Use /auth login to authenticate.
    [CommandManager] Console executed command: auth login device
    >....Starting OAuth2 device flow. Check console for verification URL.
    [AbstractCommand] ===================================================================
    [AbstractCommand] DEVICE AUTHORIZATION
    [AbstractCommand] ===================================================================
    [AbstractCommand] Visit: https://oauth.accounts.hytale.com/oauth2/device/verify
    [AbstractCommand] Enter code: ExrMfmHL
    [AbstractCommand] Or visit: https://oauth.accounts.hytale.com/oauth2/device/verify?user_code=ExrMfmHL
    [AbstractCommand] ===================================================================
    [AbstractCommand] Waiting for authorization (expires in 600 seconds)...
  5. 點擊控制台中提供的連結(例如 https://oauth.accounts.hytale.com/oauth2/device/verify)以在瀏覽器中開啟官方 Hytale 授權頁面。
  6. 輸入控制台顯示的代碼(例如 ExrMfmHL)。
  7. 確認後,返回您的控制台。您將看到成功訊息,伺服器將完成載入。

注意: 每次重新啟動伺服器時,您都必須完成此透過流程。這是遊戲開發商強制執行的安全功能。