MBDiscordLink is an addon for MagiBridge that adds an account linking system to it, as well as role syncing. I decided to not include it directly into MagiBridge because not everyone may use this feature, so it’s a separate plugin.
The permission to link/unlink commands is magibridge.link and magibridge.unlink!
Features
Link Minecraft accounts with Discord accounts
Adds users to a specific role once they link their account
Run commands when a player links/unlinks his account
Sync roles based on permissions for linked users
Sync nicknames based on the player’s in-game name
All messages configurable
Config
You can see an example of the current config here.
Basic Setup
Customize your messages config node as you want
Set the default linked role on the plugin config. This role will be given to users once they link their accoint
Set the commands that should be run when players link/unlink their account
Optionally, set the roles to sync. The format is "perm"="role-id". The permission can be anything you want, for example if you want to sync LuckPerms groups to roles, you can use the group.<groupname> permission, and the role you want associate to it. You can get the role ID by tagging the role on Discord with an \ before it, like \@Admins. The ID is the numerical string.
Ready to go! The plugin should be now working!
This plugin uses StorageUtils to store configs and the player data.
Technically couldn’t someone abuse the Link/Unlink feature of this to consistently be rewarded whatever is put in the config to give them for linking their reward?
makes sense. a potential thing i can see being done is not giving the perm to unlink but i havent tested if leaving the discord server and rejoining will also unlink their account causing issues. tricky situation here. may have to rethink this for my server. very nice plugin though.
Second: is there any capability in this plugin to set the user’s Discord nickname to their in-game name? My brain was telling me this was one of the features of the plugin, but it doesn’t seem to do that now that I’ve gotten it running …and I can’t find anything in the docs that indicates that it should do that. So: am I missing something silly obvious, or just losing my mind (or both)?
yea, the users.conf filled out to about 30 names, then it stopped recording them. bot still works, just had to make him disable commands after linking with luckperms I know there should be atleast 10 times as many username/igns, but i never see the list update
what do you mean by group. ? I couldn’t get this to work. I made a rank on the server called twitch and put group.twitch in the config which didn’t work.