Discord2FA icon

Discord2FA -----

Two factor authentication plugin with Discord!




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.

FORK LINK: https://www.spigotmc.org/resources/✨-discord2fa-2-fork-version-1-8-1-20-✨.110132/
----------, Dec 2, 2023

- The errors given by the plugin while running on Spigot have been fixed.

[​IMG]
----------, Jan 23, 2021

- The problem with the plugin running so heavy at times has been fixed.
- Plugin now uses HikariCP for MySQL connection.
----------, Jan 4, 2021

- Fixed some bugs.
- Added bot activity. If you want to enable bot activity, check the 'bot-activity' value in the config file.
Code (YAML):
bot-activity:
  enabled
: false
  type
: DEFAULT
  value
: 'Minecraft'
Activity types

There are total 3 activity types
  1. DEFAULT (Playing)
  2. WATCHING
  3. LISTENING
----------, Dec 25, 2020

- 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
[​IMG]
[​IMG]
[​IMG]

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!'

----------, Dec 23, 2020

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.)

  • NUMERIC: like '438100' (DEFAULT)
  • ALPHANUMERIC: like 'tb0Sts' (MORE SAFELY)
  • ALPHABETIC: like 'vzfTNc' (SAFELY)

[​IMG]

[​IMG]

[​IMG]
----------, Dec 11, 2020

- 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.)

  • NUMERIC: like '438100' (DEFAULT)
  • ALPHANUMERIC: like 'tb0Sts' (MORE SAFELY)
  • ALPHABETIC: like 'vzfTNc' (SAFELY)
[​IMG]

[​IMG]

[​IMG]
----------, Dec 10, 2020

- Re-coded some classes in the project.
- Added custom events.

Code (Java):
// auth complete event
   
    import io.github.eylexlive.discord2fa.event.AuthCompleteEvent ;
    @EventHandler
    public void handle (AuthCompleteEvent event ) {
        final Player player = event. getPlayer ( ) ;
    }

// auth fail event
   
    import io.github.eylexlive.discord2fa.event.AuthFailEvent ;
    @EventHandler
    public void handle (AuthFailEvent event ) {
        final Player player = event. getPlayer ( ) ;
    }
----------, Dec 5, 2020

- Fixed hardcoded color bug. @LeoAlexa
upload_2020-11-23_12-31-55.png
- 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.
----------, Nov 23, 2020

- 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.
----------, Nov 7, 2020

- Fixed an issue in 1.16.2. (Thanks for the report @Loving11ish)
upload_2020-9-5_19-22-6.png
----------, Sep 5, 2020

- Fixed an issue with not saving these changes if a change is made to the config file while the server is running.
----------, Aug 29, 2020

- Fixed a mysql issue.
upload_2020-7-5_21-56-32.png

If you like the plugin, please rate it with 5 stars!
----------, Jul 5, 2020

- Added 1.16 support
- Added metrics for bStats
- Fixed a few bugs.
----------, Jun 28, 2020

- Fixed a few bugs.
- Added an alias for /auth command.
Alias: /dcauth
----------, Jun 16, 2020

- Fixed a few bugs.
----------, May 18, 2020

- Added LoginSecurity support.
Default value: false
Code (YAML):
loginsecurity-support : false
- Player sit support is now 1.8-.1.15.2 (but isn't work now on 1.7)
- Fixed a few bugs.
----------, May 11, 2020

- Added backup codes (per-player 5 codes.)
command: /discord2fa generateBackupCodes <player>

[​IMG]
----------, May 2, 2020

- Added MySQL database support.
(If you find a bug, contact me via Discord.)
Code (YAML):
mysql:
  enabled
: false
  host
: localhost
  port
: 3306
  database
: minecraft
  username
: root
  password
: 1234
  use-ssl
: true
----------, Apr 28, 2020

- The bug in the photo and other mini bugs has been fixed.
@ProGamer212009

upload_2020-4-27_22-0-28.png

- Database storage method changed.
(You don't need to re-add players you've added to the verification list.)

* Old
Code (YAML):
verify-list :
- UmutErarslan_/324289979188510730
ip-addresses
:
    UmutErarslan_
: 127.0.0.1
*
New
Code (YAML):
verify:
  UmutErarslan_
:
    ip
: 127.0.0.1
    discord
: '324289979188510730'
 
----------, Apr 27, 2020

- 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
Code (YAML):
auto-verification : true
----------, Apr 22, 2020

- Fixed a few bugs.
----------, Apr 9, 2020

- 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
Code (YAML):
authme-support : true
----------, Mar 24, 2020

- Added admin logs. You must add discord id of the admin.
Code (YAML):
logs:
  enabled
: true
  player-authenticated
: '> %player%''s account was authenticated.'
  player-entered-wrong-code
: '> %player% entered wrong code! Left rights: %left%'
  player-reached-limit
: '> %player% reached the right limit!'
  admin-ids
:
   - 324289979188510730
----------, Mar 21, 2020

- Fixed a few bugs.
- Added "inventory-open" event to be cancelled.
Code (YAML):
 inventory-open:
    cancel
: true
    whitelisted-inventory-types
:
   - ANVIL
----------, Mar 1, 2020

- 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.
Code (YAML):
code-lenght : 6
----------, Feb 29, 2020

- Fixed a few problems/bugs.
- Added "inventory click" and "player interact" events to be cancelled.
Code (YAML):
 inventory-click:
    cancel
: true
    whitelisted-materials
:
     - STONE
  player-interact
:
    cancel
: true
    whitelisted-actions
:
     - PHYSICAL
----------, Feb 24, 2020

Resource Information
Author:
----------
Total Downloads: 11,521
First Release: Feb 23, 2020
Last Update: Dec 2, 2023
Category: ---------------
All-Time Rating:
41 ratings
Version -----
Released: --------------------
Downloads: ------
Version Rating:
----------------------
-- ratings