Frequently Asked Questions - LielAmar/2FA GitHub Wiki
2FA Frequently Asked Questions
These are the commonly asked questions regarding the 2FA plugin. If you didn't find an answer to your question, you can contact us in various different ways!
Q: The plugin doesn't work
-
A: If the plugin throws a
java java.lang.reflect.InaccessibleObjectException
error, you are most likely using Java 16 with Spigot 1.16.4 and below. These versions of Java and Spigot combined make it impossible to download dependencies at runtime, which is a feature that 2FA implements. To avoid this problem you either have to use a different Java version, update Spigot 1.16.5+ or add the following flags to your start-up file:--add-opens java.base/java.lang=ALL-UNNAMED --add-opens java.base/java.net=ALL-UNNAMED
-
A: If the plugin doesn't work for any other reason, please try to re-install it by removing everything related to 2FA. If this doesn't help, please contact us through the ways given at the top of the page :)
Q: Whenever I scan the QR code and enter the code in my authenticator, the plugin says the code is invalid
- A: Make sure your server and your device are time-synced, because 2FA uses TOTP (Time-Based One Time Password).
Q: 2FA asks me to authenticate everytime I join a different server in my network
- A: You need to have 2FA included in your proxies as well for it to sync authentication between servers.