✨ Discord2FA 2: FORK VERSION [1.8-1.20] ✨ icon

✨ Discord2FA 2: FORK VERSION [1.8-1.20] ✨ -----

2FA Discord Auth | Cancel Events | 100% Custom | Webhook



[​IMG]
Discord2FA 2: Fork Version
[1.8-1.20]

Thank you for visiting my fork resource. This plugin was made by eylexlive (currently out of date) and I recoded it for recent versions.

Discord2FA 2 (Fork Version) is a plugin that protect your players from malicious people.




NEW FEATURES
  • 1.8 to 1.20 (Base Version) version support (the original plugin it's until 1.16 version).
  • Discord Embeds with GeoIP placeholders (using ip-api.com API):

    Example of real IP address (data censured):
    [​IMG]

    1. %player%
    2. %code%
    3. %ip%
    4. %country% *
    5. %city% *
    6. %isp% *

      * Warning: The marked placeholders are using the ip-api.com API. For each use of GeoIP Placeholder, a request will be made to the API. Remember that each request uses several resources.

      If IP address equals null/localhost/127.0.0.1/0.0.0.0, the result are "Unknown". Change on config.yml > unknown-location-placeholder:

      [​IMG]

  • Full custom config:

    mysql:
    enabled: false
    host: localhost
    port: 3306
    database: minecraft
    username: root
    password: 1234
    use-ssl: false
    bot-token: Your token here.
    bot-activity:
    enabled: false
    type: DEFAULT
    value: 'Minecraft'
    auth-countdown: 60
    number-of-rights: 5
    rights-reached-console-command: 'ban %player% 2FA Failed'
    check-for-updates: true
    generate-new-code-always: true
    auto-verification: true
    blind-on-auth: true
    discord-embed-image: ' https://minotar.net/armor/bust/%player%/250.png'
    code-lenght: 6
    code-type: NUMERIC
    authme-support: true
    loginsecurity-support: false
    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!'
    logs:
    enabled: true
    enable-admin-discord-embed: true
    embed-player-authenticated:
    title: '[ADMIN] Discord2FA 2'
    description: '**%player%**''s account was authenticated.'
    first-field-title: 'IP Address / ISP'
    first-field-subtitle: '`%ip%` / `%isp%`'
    second-field-title: 'Location'
    second-field-subtitle: '%city%, **%country%**'
    embed-player-entered-wrong-code:
    title: '[ADMIN] Discord2FA 2'
    description: '**%player%** entered wrong code! Left rights: **%left%**'
    first-field-title: 'IP Address / ISP'
    first-field-subtitle: '`%ip%` / `%isp%`'
    second-field-title: 'Location'
    second-field-subtitle: '%city%, **%country%**'
    embed-reached-limit:
    title: '[ADMIN] Discord2FA 2'
    description: '**%player%** reached the right limit!'
    first-field-title: 'IP Address / ISP'
    first-field-subtitle: '`%ip%` / `%isp%`'
    second-field-title: 'Location'
    second-field-subtitle: '%city%, **%country%**'
    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:
    - 844573235676446720
    canceled-events:
    command-use:
    cancel: true
    whitelisted-commands:
    - auth
    item-drop:
    cancel: true
    whitelisted-materials:
    - STONE
    block-break:
    cancel: true
    whitelisted-blocks:
    - STONE
    block-place:
    cancel: true
    whitelisted-blocks:
    - STONE
    chat-use:
    cancel: true
    whitelisted-words:
    - Hello
    inventory-click:
    cancel: true
    whitelisted-materials:
    - STONE
    player-interact:
    cancel: true
    whitelisted-actions:
    - PHYSICAL
    inventory-open:
    cancel: true
    whitelisted-inventory-types:
    - ANVIL
    # Available "embed" or "discord-message" placeholders: %code%, %player%, %ip%, %country%, %city%, %isp%
    messages:
    auto-verify-success-message: '&8&l- &6Automatic verification successful!'
    enable-discord-embed: true
    embed:
    title: 'Discord2FA 2'
    description: '**%player%** joined from **%country%** (IP **%ip%**). Your code: **%code%**'
    first-field-title: 'IP Address / ISP'
    first-field-subtitle: '`%ip%` / `%isp%`'
    second-field-title: 'Code'
    second-field-subtitle: '**%code%**'
    discord-message: '**%player%** joined from **%country%** (IP **%ip%**). Your code: **%code%**'
    unknown-location-placeholder: 'Unknown'
    kick-message: '&cYou are kicked from the server because &fauth countdown time &cis reached! &cLeft rights&8:&f %rights%'
    msg-send-failed: '&8&l- &6Error while sending message to your Discord!'
    auth-message:
    format-1: ' %nl%
    &8&l- &f&lHEY! &6You must be authenticated to connect!
    %nl% %nl%
    &8&l- &6We are sent a code, please check your discord direct messages!.
    %nl%
    &8&l- &6If the code has not been sent,check your direct message settings and try again.
    %nl%
    &8&l- &6/auth <code> &6to authenticate yourself.
    %nl%
    &8&l- &6You have %countdown% seconds!
    %nl%'
    format-2: ' %nl%
    &8&l- &f&lHEY! &6You must be authenticated to connect!
    %nl% %nl%
    &8&l- &6We are sent a code, please check your discord direct messages!.
    %nl%
    &8&l- &6If the code has not been sent,check your direct message settings and try again.
    %nl%
    &8&l- &6/auth <code> &6to authenticate yourself.
    %nl%
    &8&l- &f%seconds% left!
    %nl%'
    auth-command:
    help-message: '&8&l- &6/auth <code>'
    already-verified-message: '&8&l- &6Your connect already verified!'
    invalid-code-message: '&8&l- &6Invalid code,Left rights:&f %rights%'
    auth-success-message: '&8&l- &6Successfully authenticated with your Discord account. Thanks for keeping your account secure.'
    backup-code-used: '&8&l- &6You have used a backup code!'
    discord2fa-command:
    help-message: '
    &8&m--------------------
    %nl%
    &6&lDiscord2FA&8&l -&f&l Help
    %nl% %nl%
    &6Commands:
    %nl%
    &f/discord2fa enable
    %nl%
    &f/discord2fa disable
    %nl%
    &f/discord2fa addToVerifyList <player> <discord id>
    %nl%
    &f/discord2fa removeFromVerifyList <player> <discord id>
    %nl%
    &f/discord2fa verifyList
    %nl%
    &f/discord2fa removeFromCheck <player>
    %nl%
    &f/discord2fa generateBackupCodes <player>
    %nl%
    &f/discord2fa reloadConfig
    %nl% %nl%
    &8&m--------------------'
    verifyList-message: ' &6&lVerify List&8: &f%list% '
    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!'
    invalid-discord-id: '&8&l- &6Invalid Discord ID.'
    backup-codes-generated: '&8&l- &6Backup codes was generated for &f%player%&6 Codes: &f%codes%'
    added-to-verifyList-message: '&8&l- &f%player% &6successfully added to verify list with discord id &f%id%.'
    removed-from-verifyList-message: '&8&l- &f%player% &6successfully removed from verify list with discord id &f%id%.'
    reload-success: '&aReload success!'
    event-messages:
    command-use-message: '&8&l-&6 Please verify your login firstly for use a command!'
    item-drop-message: '&8&l-&6 Please verify your login firstly for drop a item!'
    block-break-message: '&8&l-&6 Please verify your login firstly for break a block!'
    block-place-message: '&8&l-&6 Please verify your login firstly for place a block!'
    chat-use-message: '&8&l-&6 Please verify your login firstly for use the chat!'
FAQ
  • How will the player Auth?
    The player must use /auth <code> command for authentication.
  • How can I add the player from verification list
    If you want to remove the player from verification list, Use /discord2fa removeFromVerifyList <player>
  • How can I remove the player from verification list
    If you want to remove the player from verification list, Use /discord2fa addToVerifyList <player> <discord id>
  • How can I see verification list?
    You can see the verify list with using /discord2fa verifyList
  • How can I generate back up codes?
    You can generate back up codes with using /discord2fa generateBackupCodes <player>. Warning: If the back up codes generated before, old codes will be deleted.

TODO

  • Fix MySQL Support.
Resource Information
Author:
----------
Total Downloads: 1,264
First Release: May 29, 2023
Last Update: Jul 8, 2023
Category: ---------------
All-Time Rating:
4 ratings
Version -----
Released: --------------------
Downloads: ------
Version Rating:
----------------------
-- ratings