Compatibility
Minecraft: Java Edition
1.21.x
1.20.2–1.20.6
1.18.x
Platforms
Tags
Creators
Details
Licensed MIT
Published 2 months ago
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


