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.