🚧
Portfolio *WIP*
DiscordGitHubSpigotMC
  • 🏠Home
  • 🔌Plugins
    • Commissions
      • 🔗HibiscusMC Discord Link
      • 📦IMC Key Vaults
      • 💟Minebound LifeSteal
      • 💰RPMoney
      • 🤞Spawners Chance
    • Public
      • 🎟️Arcane Vouchers
      • ⚙️GUIHelper
      • 🆙TEUpgrades
  • 🤖Discord Bots
    • Commissions
      • 📺Clippies
  • ⚙️Configurations
    • Public
      • ⛏️Jobs Reborn GUI
      • 📄mcMMO Statistics GUI
      • 🆙SkyBlock Upgrades Menu
Powered by GitBook
On this page
  • Info
  • Images
  • Files
  1. Plugins
  2. Commissions

HibiscusMC Discord Link

Addon for DiscordSRV that uses OAuth2

PreviousCommissionsNextIMC Key Vaults

Last updated 2 years ago

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

config.yml
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>'
🔌
🔗