Summary
Server-side script for automated player login, faction assignment, and admin rights via JSON whitelist. Eliminates manual #login for admins and automatically kicks unauthorized players.
Description
Auto-Faction: Whitelisted players (US/USSR) are automatically assigned to their respective faction upon connection.
Auto-Admin & GM: Admins in the config get the ADMINISTRATOR role and Game Master editor instantly—no #login command needed.
In-Game Whitelisting: Staff can whitelist players directly via chat commands.
Anti-Guest Quarantine: Unauthorized players are held in quarantine and automatically kicked after 5 minutes if not whitelisted.
File Sync: Automatically generates and syncs data between $profile:whitelist.json and WCS_Admin.json.
💬 Chat Commands
#cmid <playerId> <us|ussr> – Whitelists a connected player to a specific faction.
#adminfaction – Allows players to request a faction assignment (alerts online staff).
📂 Configuration File
File Path:
Located in your server's profile directory as $profile:whitelist.json (defined by your server's -profile launch parameter).
Example whitelist.json Structure:
json
{
"US": [
"12345678-abcd-1234-abcd-123456789abc",
"55555555-eeee-6666-ffff-777777777777"
],
"USSR": [
"87654321-dcba-4321-dcba-cba987654321"
],
"ADMINS": [
"11111111-2222-3333-4444-555555555555"
],
"MODERATORS": [],
"DYNAMIC_ADMIN_LISTS": {
"ADMIN_1_US": [
"99999999-8888-7777-6666-555555555555"
]
}
}
Contact
Discord: capo89License
Arma Public License (APL)