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