This plugin requires ProtocolLib available here - http://www.spigotmc.org/resources/protocollib.1997/
This plugin currently only works in ONLINE MODE due to use of UUIDs.
TwoFactor (2FA) is a small plugin that adds an additional layer of security to your server. This plugin ensures that even if a player's password is compromised, their account and items on your server are safe.
Here's how it works: First as the server and domain owner you setup a wildcard DNS record for your server. The method to do this varies by domain registrar, so use Google to find out how exactly to do this.
For example, if people usually connect using mc.yourserver.com, you need to set a DNS record to direct *.mc.yourserver.com to your IP.
Then you want to setup the plugin and modify the configuration to your liking. After that players can use the commandto setup their custom login address. After they have used the commandCode (Text):/2fa <password>they will have to login withCode (Text):/2fa <password>.Code (Text):<password>.mc.yourserver.com
If they login with a different URL, then they will get a error message. This TwoFactor password can be reset by an admin using.Code (Text):/2fa reset
Permissions:Code (Text):/2fa <password> - Command used by players to set a TwoFactor password
/2fareset <username> - Command used by admins to reset a user's TwoFactor password
Code (Text):twofactor.changetoken - Allows a player to set a TwoFactor password (default: true)
twofactor.resettoken - Allows staff to reset a TwoFactor password (default: op)