Configuration
In the
config.yml file, you'll need to set the details of your SMTP server that will be used to send the e-mails, the e-mail template to be sent, allowed e-mail domains (if applicable) and expiration time for verification codes.
Code (YAML):
mailserver
:
# Your SMTP server details
username
:
"username"
password
:
"password"
from
:
"[email protected]"
subject
:
"Your Minecraft Verification Code"
message
:
"Your verification code is %CODE%\nItExpires in 5 minutes"
extensions
:
# Add this if you only want to allow players from a specific e-mail domain. Leave the list empty if you want to allow any email from any domain Eg: I want to allow only people from my school to join (sample emails: [email protected], [email protected])
-
"myschool.edu"
-
"myschool.admin.edu"
host
:
"smtp"
# Put your SMTP server URL
port
: 578
authentication:
time
: 300
#This is the time in seconds until for the email code expiration, the player can't send another e-mail if the original code hasn't expired yet
Languages
You can add new languages or edit the plugin messages via the
languages.yml file
Commands
- /register <email> - Command to request a one time authentication code for the player via their e-mail
- /code <code> - Command used by players to verify their email with the code received via their e-mail
- /password <password> <confirmPassword> - Command that allows the player to define their passwords after they verify their e-mail sucessfully
- /resetpassword - Command for the player to request a password reset (in case they forgot their password). They will need to verify themselves via the same e-mail they have initially used
- /login <password> - Used by already verified players to login to the server with their passwords