Cousin Discord Linker

Free + paid Cousin Discord Linker 1.1

This resource is free, with optional premium version
🔔 CousinDiscordLinker – Update

New Feature: Permissions Plugin Integration

You can now automatically add verified players to a Permissions group when they complete their Discord verification!

How to enable: In your config.json, add or set:

JSON:
"PermissionGroup": "verified"

Replace "verified" with the name of the group you want players added to. Leave it empty "" to keep the feature disabled (default).

What it does:

  • When a player verifies via Discord → automatically added to the configured group
  • When an admin uses cdl.verify <eosid> → also added to the group
  • Fully idempotent — safe to re-verify, won't create duplicate entries
  • If the Permissions plugin isn't configured, this feature has zero impact on your server

⚠️ Requires the Permissions plugin to be installed and the group to already exist.
🔧 CousinDiscordLinker — Bug Fix Update

Two issues have been fixed in the latest build:

1. Brand-new players receiving a blank name in the verification code
When a player joined for the very first time, the plugin was trying to grab their character name before the game engine had finished creating it — resulting in an empty PlayerName stored in the database. The plugin now waits up to 15 seconds (configurable via NewPlayerNameGracePeriodSeconds) for the engine to populate the name before generating a verification code and sending the prompt. No more blank names. ✅

2. PlayerName not updating after a character change
If a verified player killed their character and created a new one with a different name, the database was never updated. The same timing race was the culprit — the hook fires before the new character's name is available. The plugin now defers the name update and retries automatically until the name resolves. Your DiscordVerification table will always reflect the player's current survivor name. ✅

Config change: A new optional setting NewPlayerNameGracePeriodSeconds (default: 15) has been added to config.json. No action required — the default works for most servers. Increase it only if names are still resolving blank on your server.
Back
Top