config.yml
Code (YAML):
# Thank you so much for purchasing my plugin,
# it really means a lot to me!
# _____ _ _
# | ____|_ __ ___ __ _(_) | ___ _ __
# | _| | '_ ` _ \ / _` | | |/ _ \ '__|
# | |___| | | | | | (_| | | | __/ |
# |_____|_| |_| |_|\__,_|_|_|\___|_|
#
#
# This is a file to help you configure settings to your likings. It is recommended
# to leave everything as it is, but, if you know what you're doing, feel free to change
# it. If you do not understand what something does, please leave it as it is and ask for help.
languageFile
:
"en_US"
#The language file that should be used. Use the file name without .yml from the /lang/ folder
prefix
:
"&bEmailer &7>"
#The prefix that is then replaced in the language file by %prefix%
updateChecker
: true
#Specifies whether or not the update checker should work. If set to false, your server will start up faster
debug
: false
#If set to true, everything that is happening and is related to the plugin will be logged in the console
saveDataEvery
: 10
#Specifies every how many minutes the data (verified emails, pending requests etc.) should be saved
storage
:
#information on how user data should be saved
type
:
"MYSQL"
#Available types are [MYSQL, FLAT].
mysql:
host
:
"sql.something.com"
database
:
"customer_10_server"
username
:
"customer_10_server"
password
:
"password"
port
: 3306
statement
:
"?autoReconnect=true&useUnicode=true"
tables:
verified
:
"verified_emails"
server
:
#information about the server used to send emails. If you don't know what that is, just use the default one.
host
:
"smtp.gmail.com"
#The host used to send the email.
port
: 587
#The port used to send emails. 587 is usually the default one.
email
:
#The login information to your email. This is private and should NOT be shared with anyone.
address
:
"[email protected]"
#The email, for example "[email protected]"
password
:
"password"
#And the password. If you're using Gmail, create an App Password and use that (https://support.google.com/accounts/answer/185833?hl=en)
onVerify
:
#Specify what happens when someone verifies their email successfully.
#- "consolecmd give %player% diamond 64"
onUnsubsribe
:
#Specify what happens when someone un-subscribes their email
#- "consolecmd msg %player% Sad to see you've unsubscribed :/"
templates.yml
Code (YAML):
verificationTemplate
:
"verify"
#The template used when verifying users
emails
:
#The email templates to be used
"verify"
:
#The id of the template, used to identify it in-game
subject
:
"Verify your minecraft account"
#The subject of the email
type
: HTML
#The type of the email. Available types are [HTML, TEXT]
html
:
"verify.html"
#If the type is HTML, which file should be used?
text
:
#If the type is TEXT, what should the email contain?
-
"Hey there %player%,"
-
""
-
"This email is sent to you due to your verification request on our server."
-
"It is a pleasure to have you as a registered email user and we really appreciate this."
-
"In order to verify yourself, please, go in our server and type /auth %code%"
"update":
subject
:
"An update has arrived"
type
: HTML
html
:
"update.html"
text
:
-
"Hey there %player%,"
-
""
-
"An update has arrived. Check our forums (https://spigotmc.org/forums/)"
-
"for a full changelog. Enjoy!"
"event":
subject
:
"Invitation to a Minecraft event"
type
: HTML
html
:
"event.html"
text
:
-
"Hi, %player%,"
-
""
-
"You have been invited to participate in our Bedwars event"
-
"with popular YouTubers like Skeppy, DanTDM, & more!"
"sale":
subject
:
"20% OFF ALL OF OUR RANKS"
type
: HTML
html
:
"coupon.html"
text
:
-
"Hey there %player%,"
-
""
-
"A new sale, which has all of our ranks 20% off is currently"
-
"available through our store. Check it out!"
guis/recipient.yml
Code (YAML):
title
:
"Emailer > Recipient"
slots
: 9
refresh
: 20
contents:
0:
item
:
"WOOL;1;3"
name
:
"&fSend to everyone"
action
:
"SEND_TO_EVERYONE"
lore
:
-
"&7Click here to select a template and"
-
"&7send an email to anyone you want!"
1:
item
:
"WOOL;1;4"
name
:
"&fSend to everyone online"
action
:
"SEND_TO_ONLINE"
lore
:
-
"&7Click here to go to the player manager!"
2:
item
:
"WOOL;1;5"
action
:
"SEND_TO_PLAYER"
name
:
"&fSend to player"
lore
:
-
"&7Send an email to a specific online player."
8:
item
:
"BARRIER;1;9"
name
:
"&fGo Back"
lore
:
{
}
action
:
"GO_BACK"
lang/en_US.yml
Code (YAML):
general:
updateAvailable
:
"%prefix% An update was found, click this message."
notification
:
"%prefix% Hey! You've got an email. Check your inbox."
commands:
verify:
success
:
"%prefix% You have successfully verified your email."
already
:
"%prefix% The specified player (&b%player%&7) is already verified."
notVerified
:
"%prefix% The specified player (&b%player%&7) has not verified their account."
force
:
"%prefix% Successfully force verified (&b%player%&7) &7with (&b%address%&7)."
noEmail
:
"%prefix% No email has been sent to you, please use &b/setemail &7first."
unverify:
success
:
"%prefix% The specified player (&b%player%&7) is now un-verified."
unsubscribe:
success
:
"%prefix% Successfully unsubscribed from any emails."
pending:
success
:
"%prefix% An email with a verification code has been sent to &b%email_address%&7."
already
:
"%prefix% You have already received an email."
search:
found
:
"%prefix% (&b%input%&7) is verified with (&b%output%&7)."
notFound
:
"%prefix% (&b%input%&7) could not be matched with any player/email."
email:
sent
:
"%prefix% An email has been sent to &b%recipients% &7recipient(s). If not, please check the console for any errors."
reload:
success
:
"%prefix% The configuration files were successfully reloaded."
errors:
onlyPlayers
:
"%prefix% Only players can use this command."
noPermissions
:
"%prefix% You do not have enough permissions to do this."
playerNull
:
"%prefix% The specified player does not seem to be online."
wrongUsage
:
"%prefix% The right usage is &b%usage%"
wrongCode
:
"%prefix% The code you entered does not match the one we sent you."
wrongEmail
:
"%prefix% The email address you entered seems to be invalid."
failed
:
"%prefix% Something went wrong and the email could not be sent."
templateNotFound
:
"%prefix% A template with that id could not be found."
empty
:
"%prefix% There are currently no verified users to send an email."
already
:
"%prefix% You have already verified your email."