MCPcopy Index your code
hub / github.com/LielAmar/2FA

github.com/LielAmar/2FA @1.7.2

Chat with this repo
repository ↗ · DeepWiki ↗ · release 1.7.2 ↗ · + Follow
772 symbols 2,007 edges 96 files 121 documented · 16%
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

2 Factor Authentication

[!NOTE]\ The plugin is currently undergoing significant changes and improvements for version 2.0. Stay tuned for exciting updates!

2FA Logo

License Release Discord Issues Spigot

GitHub Workflow

Information

2FA is a Spigot/Paper plugin, with BungeeCord support.

It is a fork of Connor Linfoot's MC2FA.

This plugin adds another layer of protection to your server, by allowing players to use 2FA with an Authenticator app,

requiring them to enter a time-based generated code when loggin in/changing ips.

2FA uses BungeeCord PluginMessagingChannel to communicate between the Spigot Servers & BungeeCord server, therefore, if you want

to use 2FA for BungeeCord, you need to put the jar file in /plugins/ for every Spigot server, as well as for your BungeeCord server.

Features

  • 2FA Authentication, based on permissions.
  • Ability to remove own/other's 2FA
  • BungeeCord support
  • Json, MySQL, MongoDB support
  • Admin commands

Using 2FA

You can download 2FA from Spigot.

After downloading, simply drag it into your plugins folder and reload the server!

  • If you use BungeeCord, install the plugin in your BungeeCord/plugins/ folder as well!

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

License

MIT

Extension points exported contracts — how you extend this code

TwoFactorAuthenticationPlugin (Interface)
(no doc) [6 implementers]
src/main/java/com/lielamar/auth/shared/TwoFactorAuthenticationPlugin.java
Hash (Interface)
(no doc) [6 implementers]
src/main/java/com/lielamar/auth/shared/utils/hash/Hash.java
AuthCommunicationCallback (Interface)
(no doc) [2 implementers]
src/main/java/com/lielamar/auth/shared/communication/AuthCommunicationHandler.java
JSONCallback (Interface)
(no doc) [1 implementers]
src/main/java/com/lielamar/auth/bukkit/utils/fetching/JSONCallback.java
UUIDCallback (Interface)
(no doc) [1 implementers]
src/main/java/com/lielamar/auth/bukkit/utils/uuid/UUIDCallback.java

Core symbols most depended-on inside this repo

sendMessage
called by 73
src/main/java/com/lielamar/auth/bukkit/communication/ProxyAuthCommunication.java
getAuthHandler
called by 68
src/main/java/com/lielamar/auth/shared/TwoFactorAuthenticationPlugin.java
getMessageHandler
called by 57
src/main/java/com/lielamar/auth/shared/TwoFactorAuthenticationPlugin.java
contains
called by 50
src/main/java/com/lielamar/auth/bukkit/utils/file/FileManager.java
set
called by 50
src/main/java/com/lielamar/auth/bukkit/utils/file/FileManager.java
getConfigHandler
called by 45
src/main/java/com/lielamar/auth/shared/TwoFactorAuthenticationPlugin.java
toString
called by 40
src/main/java/com/lielamar/auth/bungee/utils/BungeeMetrics.java
getPlayer
called by 38
src/main/java/com/lielamar/auth/bukkit/events/PlayerStateChangeEvent.java

Shape

Method 642
Class 113
Enum 11
Interface 6

Languages

Java100%

Modules by API surface

src/main/java/com/lielamar/auth/bungee/utils/BungeeMetrics.java50 symbols
src/main/java/com/lielamar/auth/bukkit/utils/bstats/BukkitMetrics.java49 symbols
src/main/java/com/lielamar/auth/bukkit/utils/file/FileManager.java32 symbols
src/main/java/com/lielamar/auth/bukkit/handlers/ConfigHandler.java21 symbols
src/main/java/com/lielamar/auth/bukkit/handlers/AuthHandler.java21 symbols
src/main/java/com/lielamar/auth/bukkit/utils/nayukifast/QrCode.java20 symbols
src/main/java/com/lielamar/auth/shared/handlers/ConfigHandler.java19 symbols
src/main/java/com/lielamar/auth/shared/handlers/AuthHandler.java19 symbols
src/main/java/com/lielamar/auth/shared/storage/sql/SQLStorage.java16 symbols
src/main/java/com/lielamar/auth/shared/storage/json/JSONStorage.java16 symbols
src/main/java/com/lielamar/auth/bukkit/listeners/DisabledEvents.java16 symbols
src/main/java/com/lielamar/auth/bukkit/TwoFactorAuthentication.java16 symbols

For agents

$ claude mcp add 2FA \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact

Ask about this repo answers extend the page