DiscordGate

Server-side Discord authentication and 2FA for Minecraft, with an animated obsidian sanctuary and a built-in QR code verification map.
portal-open.jpg

portal-open.jpg

qr-map-in-hand.jpg

qr-map-in-hand.jpg

sanctuary-night.jpg

sanctuary-night.jpg

web-home.png

web-home.png

web-verify.png

web-verify.png

Description

DiscordGate: One Minecraft Name. One Discord Account.

Stop people from logging in as someone else on your online-mode=false server. Each Minecraft name gets linked to one Discord account.

Fabric, NeoForge and Forge. Players need no mods and no Discord bot.

Quick start (about 1 minute)

  1. Put the discordgate-*.jar for your loader in the server's mods/ folder. (Fabric also needs Fabric API.)
  2. Set online-mode=false in server.properties.
  3. Start the server once, then open config/discordgate.properties and fill in:
    • backendBaseUrl
    • apiKeyId
    • hmacSecret
  4. Restart the server. Done.

Need a backend? Pick one:

What players see

  1. Join. A new player is placed in a small sky room, hidden from chat and other players.
  2. Verify. They scan the QR code on the map (or click the link in chat) and sign in with Discord.
  3. Play. An obsidian portal opens. They walk through it and are back where they left off, in Survival.

Next time they join, they just confirm a one-time code from Discord (or are let in automatically, if you enable IP-based relogin).

Features

  • Vanilla clients only. Nothing for players to install.
  • Name protection. No duplicate logins, even for players already online or waiting to verify.
  • Secure. Discord OAuth2 with PKCE, and requests to the backend are signed with HMAC-SHA256. If the backend is down, new players are rejected and current players are not affected.
  • Relogin choice (/account). A Discord code every time (default), or quick relogin if the IP matches within a time window you set.
  • Public dashboard (/dashboard). Players online and total linked accounts. No Discord IDs, UUIDs or IPs are shown.
  • Admin console (/admin). API keys, lock or unlink players, move an account to another Discord user, portal effects, and audit logs.

Supported versions

Loader Minecraft
Fabric 26.3 (needs Fabric API)
NeoForge 26.3
Forge 26.3

Privacy

  • Self-hosted: all data stays on your own server.
  • Hosted On https://discordgate.defextra.dev : stores what login needs: Discord IDs, Minecraft names and UUIDs, IP addresses and session logs.

Links

GitHub: niro-defextra/DiscordGate

DiscordGate Team

profile avatar
  • 1
    Projects
  • 23
    Downloads