Installing the Agent on the Game Server

  1. Downloading Required Files Download the agent script and the static binary curl file to your computer:

  2. Editing the Script Open the downloaded bedrock_server.sh file in a text editor (e.g., Notepad, Notepad++, or VS Code).

    Process of opening the script file in a text editor

  3. Configuring Variables Go back to the open server settings browser page. Copy the values and paste them into the script inside the empty quotes for the X_AGENT_TOKEN and SERVER_ID variables, then save the changes.

    Adding the token and server ID into the script configuration lines

  4. Stopping the Server Completely stop your Minecraft Bedrock game server before continuing with the tasks.

  5. Creating a Backup ⚠️ Make sure to create a backup of all your game server files before making any modifications

  6. Connecting to the Server Connect to your game server's file system using FTP or SFTP protocol (WinSCP or any other convenient FTP/SFTP client is recommended).

  7. Locating the Executable File Find the original server executable file in the root directory. It is typically named bedrock_server (on Linux) or server.

  8. Preparing the Agent File Rename the modified bedrock_server.sh file on your computer so that its name matches the exact name of your server's original executable file.

    • Example: bedrock_server.sh ➡️ bedrock_server
  9. Renaming the Original File On the game server itself, rename the original file exactly to bedrock_server_original. The name must be exactly as follows:

    • Example: bedrock_server ➡️ bedrock_server_original
  10. Uploading Files to Hosting Upload the prepared bedrock_server file (which is the renamed agent script) and the curl-amd64 file into the root directory of your game server.

  11. Opening File Properties In WinSCP, right-click the uploaded bedrock_server file and select "Properties":

    WinSCP window with context menu and file properties window open

  12. Granting Execution Permissions (Crucial!) In the properties window, check the launch/execute permissions (X) for the bedrock_server file. Click "OK" to save. Repeat the exact same action for the curl-amd64 file:

    Setting execution checkmarks (Execute / X) inside the file permissions settings

  13. Verifying File Structure Make sure that the following files are now present in the root folder of your game server:

    • bedrock_server — agent-wrapper (our configured shell script)
    • bedrock_server_original — the original Minecraft game server executable file
    • curl-amd64 — compiled static curl binary used to transmit data to the analytics backend

    File list in the server root verifying correct naming conventions and the presence of curl

  14. Startup and Verification You're all set! Start your game server using your usual startup command. It will now automatically begin collecting and passing connection logs to the Lynal BDS Analytics service.