Summary
Link player UUID to your website.
Description
Automatically links player Arma Reforger accounts to your community website via an in-game code system.
When a player spawns, a dialog prompts them to link their account. They receive a 6-character code to enter on your website while logged in,
associating their Bohemia Interactive ID with their profile. Already-linked players won't see the dialog.
Server Setup:
1. Add the mod to your server
2. First run auto-generates profile/AR-DiscordLink.json
3. Edit it with your website URL and API key, then restart
The API key is stored server-side only, never in the mod files.
Website Integration:
Implement 3 POST endpoints:
- /api/roleplay/link/check — Receives {biId, apiKey}, returns {linked: true/false}
- /api/roleplay/link/generate — Receives {biId, apiKey}, generates a temporary 6-char code, returns {code: "ABC123"}
- /api/roleplay/link/confirm — Called by your website when a logged-in user submits their code. Associates the BI ID with their account.
First two use API key auth. Third uses your website's session auth.
Codes should expire after ~15 minutes. Recommended charset: ABCDEFGHJKLMNPQRSTUVWXYZ23456789.
