Hi there, I haven't been here for a long time so I couldn't improve more discord2fa. I didn't leave coding, I just left from minecraft. However, I might carry on improve spigot plugins in the future.
There's some news. The last version of plugin seems like so old (some complains and bugs were occured.) The fork version of discord2fa was made. You can use this if you want. I didn't test it so i hope it'll work. Download it from link that i dropped.
- Added 2FA for players. If you want your players to open 2fa, enable 'authentication-for-players' option on config.yml. Thanks for the suggestion! @arturek1666
Code (YAML):
authentication-for-players:
enabled: false
confirm-your-account: '> Hey! `
%player%` is trying to open 2FA! Is this you?%nl%> If you are this player please confirm yourself by pasting the code below into the chat.%nl%> Confirmation code: **%code%**' successfully-confirmed: '> 2FA successfully enabled!'
Images
Commands
/discord2fa enable (No permission)
/discord2fa disable (No permission)
The messages of this feature can be fully customized, check the config.
Code (YAML):
player-auth-enter-discord: '&8&l- &6Please enter your Discord in the following format &fName
#Discrimintator' player-auth-confirm-code-sent: '&8&l- &6Please check your Discord direct messages!
(direct messages must be enabled!
)'
player-auth-timeout: '&8&l- &6Confirmation timeout.'
player-auth-discord-acc-not-found: '&8&l- &6We cannot find such a Discord user.'
player-auth-enabled: '&8&l- &62FA successfully enabled!'
player-auth-already-enabled: '&8&l- &62FA already enabled!'
player-auth-disabled: '&8&l- &62FA disabled!'
player-auth-already-disabled: '&8&l- &62FA already disabled!'
The update has been released again. I forgot to set the plugin version to 3.1. - Authentication code types added. There are 3 types in total. You can set the code type by changing the code-type value in config.yml (Write the code types in upper case.)
- Authentication code types added. There are 3 types in total. You can set the code type by changing the code-type value in config.yml (Write the code types in upper case.)
- Re-coded some classes in the project. - Added custom events.
Code (Java):
// auth complete event
importio.github.eylexlive.discord2fa.event.AuthCompleteEvent; @EventHandler
publicvoid handle
(AuthCompleteEvent event
){ final Player player
= event.
getPlayer(); }
// auth fail event
importio.github.eylexlive.discord2fa.event.AuthFailEvent; @EventHandler
publicvoid handle
(AuthFailEvent event
){ final Player player
= event.
getPlayer(); }
- Fixed hardcoded color bug. @LeoAlexa - In the chat event, if the whitelisted word contains in the message, it allowed the event. It has to be exactly the same word now. - It will now warn if the discord id entered in the verification list is incorrect.
- Fixed an issue where the plugin was not sending verification codes.
IMPORTANT NOTE In order for Discord2FA to work properly, you need to enable the
SERVER MEMBERS INTENT option under the "
Privileged Gateway Purposes" option on the bot tab.
- A critical bug has been fixed. - Added "auto-verification" option in the config. If you don't want the plugin to save the player's last ip address, set this to false.
Default value:
true
- Added AuthMe plugin support. If you opened the AuthMe support in the configuration file, the player is taken to 2fa check after authme login. WARNING: Idk AuthMe plugin name to upper than 1.8.8 Minecraft versions. If it was changed,contact me. Default value
: true
- Fixed the bug where "number-of-rights" value was reset when the player left the game. - Added "check-for-updates" option in the configuration file. You can set it to true or false.
Code (YAML):
check-for-updates: true
- Added "generate-new-code-always" option in the configuration file. If you set this option to "false", the authentication code is generated only 1 time.
Code (YAML):
generate-new-code-always: true
- Added "code-lenght" option in the configuration file. You can set authentication code's lenght in this option.