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.
/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
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'