5 releases, newest first.
com.sn.discordlink.api (SnDiscordLinkProvider.get()): isLinked / getLink read the cache of online players, fetchLinked / fetchLink read the shared database for any player, and getLinkedCount returns the network-wide count. Query-only: no events in this version.api-events.enabled key in config.yml (merged on boot). It is the master switch of future API events; the query service stays available either way.link-reminder.interval (10m by default, 30s minimum), each online player who has not linked a Discord account gets the messages.link-reminder lines, with a clickable [Link now] that runs /link. Players who joined less than link-reminder.first-delay (1m) ago and players already holding a live link code are skipped. Turn it off with link-reminder.enabled: false. The new config keys and lang lines are merged on boot.SNDISCORDLINK_SERVER, else Pterodactyl's P_SERVER_UUID, else an id stored in plugins/SnDiscordLink/server-id.yml. New sync.group-snapshot-days (0 = never) retires the view of a server the player stopped joining.linked-role.group (every linked player) and role-rewards.<role>.group (linked AND holding the role) grant a group as a temporary parent (luckperms.temp-group-duration, 365d, renewed while the player qualifies), checked on every join on every server and removed when the player stops qualifying. Permanent parents (purchased ranks) are never touched. on-gain / on-lose keep working.boosts.channel-id (system channel by default) since they started boosting, reading boosts.history-limit messages back at start. Claims gain min-boosts and min-boost-days. New placeholders: %sndiscordlink_boosts%, %sndiscordlink_boost_days%, %sndiscordlink_boosters%, %sndiscordlink_server_boosts%, %sndiscordlink_server_boost_tier%.linked-role.nickname-prefix-separator: " | ": Mod | OldName becomes Mod | NewName) and follows Minecraft name changes right away.claims / role-rewards do not receive the new fields automatically (owner-owned sections): add min-boosts, min-boost-days or group by hand.on-gain: lp user {player} parent add ... stays permanent: remove it by hand if you switch that role to group:.First stable release of SnDiscordLink.
Links Minecraft accounts to Discord accounts with one-time codes. Several servers share one MySQL database and elect a single embedded Discord bot through a database lease, so a player links once and every server, placeholder and reward follows.
/discord link in game redeemed with /link <code>
in Discord, and /link in Discord redeemed with /discord verify <code> in game.config.yml everywhere.linked-role given on link and removed on unlink, with optional nickname sync.claims: in-game rewards gated by a boost or a Discord role, each with its own cooldown.rank-roles: permanent LuckPerms groups mirrored to Discord roles. Only mapped roles are
ever added or removed, one PATCH per member.role-rewards: Discord roles that run on-gain / on-lose actions in game.rewards: action lists run once on link, on unlink and on a Discord leave./link, /unlink and the staff group /dlink info | unlink | accounts | stats.Java 21+, Paper 1.20.4+, SnLib 1.34.3+. JDA 6.6.0 is downloaded by Paper into libraries/ on
first boot, never shaded. Optional: LuckPerms, PlaceholderAPI.
Obfuscated with SnObfuscator (59 classes renamed, verify 60 structural / 60 data-flow / 0 failed).