- Native Minecraft Version:
- Tested Minecraft Versions:
- Source Code:
Works with AuthMe(Reloaded)
Can Replace AuthMe(Reloaded), MineSecure, 2FA, Minecraft Authenticator, etc!
The first time 2FA+ is run it will take some time to start up. this is normal, and will very rarely (if ever) take that long again.
2FA+ WILL require some setup in order to work properly. It will likely kick you out of your own server the first time you load it. Please read the wiki for installation and configuration instructions.
Code (Text):# How the plugin stores long-term data
# The storage method
# - MySQL (remote)
# - SQLite (local)
# Address and port of the remote database (if applicable)
# The name of the database 2FA+ will store data in
# If you're using remote options, this must be created beforehand
# Table prefix for all 2FA+ tables
# Database credentials (if applicable)
# Whether or not to use SSL
# MongoDB options- obviously don't need to worry about these if not using MongoDB ;)
# Connection prefix for all 2FA+ connections
# MongoDB ClientConnectionURI
# The maximum size of the database connection pool
# Determines the max number of connections to the database
# The minimum size of the satabase connection pool
# Determines the min number of connections kept alive to the database
# The maximum lifetime of a connection in the pool
# Should be at least 30 seconds less than any database or infrastructure-imposed connection time limit
max-lifetime: 1800000 # 30 minutes
# The maximum number of milliseconds that the plugin will wait for a new connection from the pool before timing out
timeout: 5000 # 5 seconds
# Extra connection properties
# Redis is a very fast cache accessible by multiple servers
# If you don't want to constantly hit your database for queries, try enabling and configuring this
# You will need to install the (external) Redis server software if you haven't already
# Address and port of the remote Redis server
# Redis credentials
# RabbitMQ is a messaging queue that will allow the plugin to push instant updates across multiple servers
# You will need to install the (external) RabbitMQ server software if you haven't already
# Address and port of the remote RabbitMQ server
# RabbitMQ credentials
# When true, logs some extra output to the console so you can see if/why things might be failing
# Authy is used as one of the available 2FA services.
# You may get an API key at the link below.
# Authy API key. Required.
# OTP (used for TOTP and HOTP) is used as one of the available 2FA services.
# This can be used with any service that takes a QR code
# eg. Google Authenticator, LastPass, or Microsoft Authenticator
# The number of digits to generate
# The business/organization name that shows up on the 2FA app when scanning the QR code
# When a player successfully authenticates, their UUID and IP is stored in a database
# This IP is kept in the database for the below amount of time before being removed
# While this IP is in the database, any time they log in from the IP they will not need to re-authenticate
# 2FAPlus can protect specific commands from being run without first authenticating
# Since this can get pretty annoying pretty quickly, the plugin sets a timer on the first successful 2FA attempt
# While this timer is active, 2FA is not required for future verification attempts unless otherwise stated and/or explicitly called via the API
# The timer resets every time a 2FA verification is required
# 2FA verification is most commonly triggered by the commands below, but can also be triggered via the API
# Commands to protect with 2FA
# Whether or not to completely deny players who don't have 2FA set up
# True: Players without a 2FA account registered will be kicked with a message
# False: Players without a 2FA account registered will be allowed in by default
# The kick message to display to players who don't have 2FA set up
no-auth-kick-message: '&cPlease set up 2FA with your admin team before logging in!'
# The maximum number of attempts that can be made before kicking the player with a message
# 0 or less to disable
# The kick message to display to players who have tried (and failed) to authenticate too many times
# If left blank, will not kick the player
too-many-attempts-kick-message: '&cYou have attempted 2FA too many times!'
# The command that CONSOLE will run for players who have tried (and failed) to authenticate too many times
# Use %player% as a placeholder for the player's (real) name
# Use %uuid% as a placeholder for the player's uuid
# If left blank, will not run anything
# How players are frozen while they are waiting for authentication
# Stop non-authenticated players from running commands
# Stop non-authenticated players from talking in chat
# Stop non-authenticated players from interacting with other players/entities/blocks
# Stop non-authenticated players from hitting other players/entities
# Stop non-authenticated players from moving stuff around in inventories
# Stop non-authenticated players from dropping/picking up items
# Stop non-authenticated players from breaking/placing blocks
# Stop non-authenticated players from moving/teleporting (falling is allowed)
# A list of player UUIDs and/or IPs that bypass 2FA
# WARNING: Adding to this list will SIGNIFICANTLY decrease security, since anyone connecting from these IPs (or with these UUIDs) will completely bypass the system
# Seriously, think long and hard before using this list
# By using this plugin, you are trading some convenience for security. By trading some of that back all you've done is gained the worst of both worlds
#- '069a79f4-44e9-4726-a5be-fca90e38aaf5' #Notch
# Whether or not to send anonymous usage statistics to bStats
# True: Send anonymous stats; let the author know how well the plugin is doing and how it's used!
# False: Do not send stats and make the author sad :(
# Whether or not to send anonymous errors to the author
# True: Send errors anonymously to Rollbar and/or GameAnalytics so the author can fix them!
# False: Do not send errors and wonder why any bugs you encounter haven't been fixed
# Whether or not to automatically check for updates and notify the console if found
# Whether or not to notify players with the 2faplus.admin permission node
# Config version, no touchy plz
/2faplus reload - Reloads the plugin.
/2faplus register authy - Registers a player in the Authy 2FA system. Valid country codes can be found at https://countrycode.org/
/2faplus register totp - Registers a player in the TOTP 2FA system. For Google, Microsoft, LastPass, etc.
/2faplus register hotp - Registers a player in the HOTP 2FA system. For YubiKey, NitroKey, etc.
/2faplus remove - Removes a player in the 2FA system.
/2faplus check - Checks the player's registration status in the 2FA system.
/hotp seek - Re-synchronizes your HOTP counter using the next few HOTP codes provided by your client.
2faplus.use - gives access to register, remove, and check commands
2faplus.admin - gives access to reload command and notifies of updates. Also allows usage of register, remove, and check commands on other players if 2faplus.use is also granted
2faplus.check - players with this node will be checked by the default 2FA system on login. Protected commands are always checked and require the player to have 2FA regardless of this permission node
Please consider donating to support this free plugin!
Disclaimer: I am a plugin developer, not a lawyer. This information is provided as a "best guess" and is not legal advice.
API documentation can be found on the wiki here.
2FA+ | Staff Authentication 2.4.17
Simple 2FA plugin for your Minecraft server.