HomeJavaModsDiscord 2FA
Discord 2FA
ModsJava

Discord 2FA

by sieadev · on Modrinth

Which build do you need?

This mod ships a separate file for every mod loader and every version of the game. Pick both, then download — the wrong build installs fine and then does nothing in the game.

Mod loader

Minecraft version

⬇ Download for 1.21.7–26.1.1 · Bukkit⬇ Download for 1.21.7–26.1.1 · BungeeCord⬇ Download for 1.21.7–26.1.1 · Paper⬇ Download for 1.21.8–26.1.1 · Purpur⬇ Download for 1.21.8–26.1.1 · Spigot⬇ Download for 1.21.7–26.1.1 · Velocity
I don't know my version or loader
Open the Minecraft launcher and look at the profile you play on — it names both, like fabric-loader-1.21.4. The version also shows in the bottom-right corner of the game's main menu.
No loader in the profile name? Then it's plain Minecraft, and these mods won't run — you need Fabric or NeoForge installed first.
Discord 2FA — screenshot 1

Banner

🛡️ Why Discord2FA?

Token-grabbing is one of the biggest threats facing Minecraft players today. With Discord2FA, every login is verified through Discord — meaning even if someone steals a player's Minecraft credentials, they still can't get in without access to their Discord account. Beyond security, Discord2FA makes a great verification gate: players must link and verify through Discord before they can interact with your server, significantly reducing alt accounts and anonymous trolling.

⚙️ Setup

  1. Download the correct jar for your platform (Spigot, Paper, Velocity...)
  2. Create a Discord Bot at Discord Developer Portal and invite it to your server
  3. Configure config.yml with your bot token, guild ID, and channel ID
  4. Restart your server

🖥️ Supported Platforms

Platform Module Notes
Paper paper 1.16.5+
Spigot spigot 1.16.5+
BungeeCord bungeecord Proxy; optional verification/post-verification servers
Velocity velocity Proxy; same options as BungeeCord

🧩 Permissions

Discord2FA uses grant-by-default permissions for link/unlink and op-only for admin:

Permission Default Description
discord2fa.link true Use /link.
discord2fa.unlink true Use /unlink.
discord2fa.admin op Use /discord2fa (version, status).

🗂️ Configuration

# Language: EN, DE, FR, IT, PL, RO, RS, TR, UA
language: en

# Storage: MYSQL or FILE
storage: "FILE"
fileAsFallback: true

database:
  ip: ""
  name: ""
  user: ""
  password: ""

discord:
  token: ""
  guild: ""
  channel: ""

# Commands usable before verification
allowedCommands: ["/link"]

# Require all players to link Discord
forceLink: false

# Skip re-verification for known IPs
rememberIPAddresses: true

Support and Troubleshooting

For any further assistance or troubleshooting, please reach out to our support server on Discord.

Quick facts

Install steps are the general flow for this file type — How to install Minecraft Java mods & modpacks walks through it step by step.

Verified by MCModsHub

These come from our own check of the pack file, not from the source page.

Explore more