Dis2FA
Secure your offline-mode Minecraft server with Discord-based two-factor authentication. Players link their Discord account to their Minecraft account — and any device change requires Discord approval before they can join again.
How it works
- A player joins for the first time and gets kicked with a one-time code
- They send the code to the bot (DM or configured channel)
- Their Discord account is linked to their Minecraft UUID
- On future joins they're let straight in — unless their device changes
- If a new device is detected, an approval request is posted to Discord before they can join
Features
- Discord-based verification — uses a bot your players already have
- Device approval — IP-based fingerprinting flags logins from new devices
- Discord role gating — restrict access to players with a specific role
- Ban sync — Discord bans can carry over to Minecraft and vice versa
- Chat bridge — two-way chat between Discord and Minecraft
- Web config editor — edit your config from a browser via
/da webwith magic link login - Standalone — built-in JDA, no DiscordSRV or other plugins required
- SQLite storage — all links and device requests persist automatically
Compatibility
| Platform | Version | Jar |
|---|---|---|
| Bukkit / Spigot / Purpur | 1.18.2+ | Dis2FA-bukkit-<version>.jar |
| Paper | 1.20.2+ | Dis2FA-paper-<version>.jar |
| Folia | 1.20.2+ | Dis2FA-folia-<version>.jar |
Requirements
- Java 17+
- A Discord bot token
Setup
- Pick the correct jar for your server type
- Drop it into
plugins/and start the server once to generateconfig.yml - Add your bot token and channel IDs to
config.yml - Restart the server
- Verify everything is working with
/da status
Links
| Version | Minecraft | Loader | Download |
|---|---|---|---|
|
Dis2FA 1.5.2 1.5.2 |
1.18, 1.18.1, 1.18.2
|
bukkit, purpur, spigot
|
Download |
|
Dis2FA 1.5.2 1.5.2 |
1.20.2, 1.20.3, 1.20.4, 1.20.5, 1.20.6, 1.21, 1.21.1, 1.21.10, 1.21.11, 1.21.2, 1.21.3, 1.21.4, 1.21.5, 1.21.6, 1.21.7, 1.21.8, 1.21.9
|
folia
|
Download |
|
Dis2FA 1.5.2 1.5.2 |
1.20.2, 1.20.3, 1.20.4, 1.20.5, 1.20.6, 1.21, 1.21.1, 1.21.10, 1.21.11, 1.21.2, 1.21.3, 1.21.4, 1.21.5, 1.21.6, 1.21.7, 1.21.8, 1.21.9
|
paper
|
Download |