This plugin allows players to easily set up 2FA for their accounts, enhancing the safety and security of your server.
Players can receive their 2FA code via QR-Code or chat during registration and benefit from features like auto-relogin with IP matching to remove the need of a login everytime they join the server in a specific time period.
Flexible 2FA Requirements: Choose from three options to suit your server's needs:
- Choice: Players can enable 2FA voluntarily.
- Permission: Only players with a specific permission (TypePerm) are required to enable 2FA.
- Global: All players must enable 2FA.
Spoiler: Commands
- /2fa -Command to register
- /2fa <Code> - Command to verify
- /2fa unlink - Command to unlink yourself
- /2fa unlink <Player> - Command to unlink another player's account
- Can only be used by server operators
Spoiler: Settings
config.yml:
# This is the prefix added before every message #
Prefix: '&5&l2FA &8≫ '
# Current plugin language. (You can edit it in the ./lang/ folder) #
Language: 'en'
# bStats #
Metrics: 'true'
# This is the name that will appear in the 2FA-Authenticator App before the username #
Servername: 'MinecraftServer'
# The permission a player needs to setup 2fa #
# Note: This only includes the setup. /2fa <Code> can still be used once setup finished #
RegisterPerm: 'system.2fa.register'
# Enable/Disable auto login on join if the IP address matches #
Autologin: 'true'
# Select the period (in minutes) in which the autologin can occur after the player has last left the server #
# 900 minutes = 15 hours #
Range: '900'
# Select the 2fa type (usefull if you want certain players to enable it) #
# choice = everyone can enable 2fa if they want to #
# permission = players with a certain permission (TypePerm) will need to enable 2fa #
# global = every player will need to enable 2fa #
Type: 'choice'
# The permission to force a player to enable 2fa #
# Note: This only be used if Type is set to permission #
TypePerm: 'system.2fa.needed'
# Enable to kick players on plugin / server reload (recommended) #
ReloadKick: 'true'
# Decides whether you want to receive information about newer versions of the plugin #
# Use: true = yes | false = no #
Updates: 'true'
# The permission a player needs to be notified of new plugin updates #
UpdatePerms: 'system.ads.notify'
# MySQL #
Use: 'false'
Host: '127.0.0.1'
Port: '3306'
Database: '2fadb'
Username: 'User'
Password: '123456789'
# This is the prefix added before every message #
Prefix: '&5&l2FA &8≫ '
# Current plugin language. (You can edit it in the ./lang/ folder) #
Language: 'en'
# bStats #
Metrics: 'true'
# This is the name that will appear in the 2FA-Authenticator App before the username #
Servername: 'MinecraftServer'
# The permission a player needs to setup 2fa #
# Note: This only includes the setup. /2fa <Code> can still be used once setup finished #
RegisterPerm: 'system.2fa.register'
# Enable/Disable auto login on join if the IP address matches #
Autologin: 'true'
# Select the period (in minutes) in which the autologin can occur after the player has last left the server #
# 900 minutes = 15 hours #
Range: '900'
# Select the 2fa type (usefull if you want certain players to enable it) #
# choice = everyone can enable 2fa if they want to #
# permission = players with a certain permission (TypePerm) will need to enable 2fa #
# global = every player will need to enable 2fa #
Type: 'choice'
# The permission to force a player to enable 2fa #
# Note: This only be used if Type is set to permission #
TypePerm: 'system.2fa.needed'
# Enable to kick players on plugin / server reload (recommended) #
ReloadKick: 'true'
# Decides whether you want to receive information about newer versions of the plugin #
# Use: true = yes | false = no #
Updates: 'true'
# The permission a player needs to be notified of new plugin updates #
UpdatePerms: 'system.ads.notify'
# MySQL #
Use: 'false'
Host: '127.0.0.1'
Port: '3306'
Database: '2fadb'
Username: 'User'
Password: '123456789'
Quick facts
- Edition: Minecraft Java
- File type: .jar
- Minecraft versions listed: 1.18, 1.19, 1.20
- How to install: Install the matching mod loader (Forge, Fabric or NeoForge) for your Minecraft version. → Download the .jar. → Put it in the .minecraft/mods folder and launch that loader profile.
- Where to get it: Opens on Spigot — not every file is mirrored on our own servers.
Install steps are the general flow for this file type — How to install Minecraft Java mods & modpacks walks through it step by step.
Simple 2FA is a free Minecraft Java mod. Compatible with Minecraft 1.18, 1.19, 1.20, 1.20.6 and newer. Downloaded 178 times (via Spigot). Download it and open it directly in the game.