Discord
uxmEssentials can reach into Discord through a small companion jar built on JDA (the Java Discord API). It mirrors server events into your Discord channels and hosts the Discord side of account linking. It's entirely optional โ a separate download that sits dormant until you give it a bot token.
What It Is¶
The bridge ships as its own jar, uxmessentials-discord, alongside the main
plugin. It is not bundled into the main jar and does nothing until configured.
It does two things:
- Notifications โ mirrors audit events and economy notifications into Discord channels, so staff actions and money movement show up where your team already watches.
- Account linking โ hosts the Discord-side
/linkslash command that redeems the code a player generates in-game.
How Linking Works¶
The in-game and Discord halves are deliberately decoupled:
- A player runs
/discordlinkin-game to get a one-time code. - They run
/link <code>in your Discord server. - The bridge redeems the code and binds the two accounts.
The in-game commands (/discordlink, /discordlink status, /discordlink gui,
/discordunlink) come from the Discord Link module and work on their own โ a
player can generate and inspect a code with no bridge running. Only the redemption
step needs the companion jar to be online and connected.
| Command | Where | Permission |
|---|---|---|
/discordlink ยท /discordlink status |
In-game | uxmessentials.discord.link |
/discordlink gui |
In-game | uxmessentials.discord.gui |
/discordunlink |
In-game | uxmessentials.discord.link |
/link <code> |
Discord | (Discord role gating) |
Setup (High Level)¶
- Create a Discord application + bot in the Discord Developer Portal and copy its bot token.
- Invite the bot to your server with permission to post in the channels you want.
- Drop
uxmessentials-discordintoplugins/next to the main jar. - Put the token and channel settings into the bridge's
discord.conf. - Restart โ JDA connects and the
/linkslash command registers.
Keep the bot token secret
The token in discord.conf grants full control of the bot. Never commit it to
version control or paste it in a public channel. Rotate it in the Developer
Portal if it leaks.
When the Bridge Is Absent¶
Because it's a distinct jar that stays dormant until configured, a server without it is completely unaffected:
| Situation | Behavior |
|---|---|
| Bridge not installed | In-game /discordlink still issues codes; there is simply nothing to redeem them against. |
| Bridge installed, no token | Dormant โ no connection, no notifications. |
| Bridge connected | Notifications flow and /link redeems codes. |
Setup Checklist¶
- Keep the Discord Link module enabled for the in-game commands.
- Install the
uxmessentials-discordjar only if you want notifications and/linkredemption. - Configure a bot token in
discord.conf. - Restart and confirm the bot comes online in your Discord server.
Next Steps¶
- ๐ Discord Link Feature โ the in-game linking flow in full
- ๐จโ๐ป Developer Overview โ the linking service seam shared over
ServicesManager