πHibiscusMC Discord Link
Addon for DiscordSRV that uses OAuth2
Info
Version: 1.19.2
How it works: Some of the players were having a hard time linking their accounts through DiscordSRV's default system which requires to send a verification received in-game to the Discord bot and the client wanted to use Discord's OAuth2 protocol. The plugin creates a temporarily link when the
/discord link
command is used, and once the player completes the authentication they are added to the Discord server and the accounts are linked.
Images
Files
discord:
application:
id: 123
secret: abc
#
# The token is required in order to be able to add the user to the server
#
botToken: xyz # Required to add the user to the server
guildId: 123
oauth:
#
# https://discord.com/developers/docs/topics/oauth2#shared-resources-oauth2-scopes
#
scope: identify guilds.join
web:
port: 3030
#
# The host also needs to be added on the Discord app dashboard as redirect
#
host: https://discordlink.hibiscusmc.com
messages:
alreadyLinked: '<red>Your account is already linked to a Discord account (id: <id>)'
authMessage: '<green><click:open_url:"{url}">Click to open the Discord Auth page</click>'
Last updated