Emailer —— 发送真正的电子邮件 | 发布销售信息 | MySQL 支持 | HTML 与文本 [1.8-1.21]

付费 开源 工具 Emailer —— 发送真正的电子邮件 | 发布销售信息 | MySQL 支持 | HTML 与文本 [1.8-1.21] 2.1.8

请登录后获取
版权类型
转载
插件中文名称
电子邮件邮递员
插件英文名称
Emailer
原帖地址
https://www.spigotmc.org/resources/66184/
支持的核心(服务端)
  1. Spigot
  2. Paper
  3. Purpur
  4. PufferFish
  5. Leaves
  6. 其他核心
语言支持
English
适配版本(Java)
  1. 1.21
  2. 1.20
  3. 1.19
  4. 1.18
  5. 1.17
  6. 1.16
  7. 1.15
  8. 1.14
  9. 1.13
  10. 1.12
  11. 1.11
  12. 1.10
  13. 1.9
  14. 1.8
开源地址:https://github.com/LagBug/Emailer

此为开源付费插件,售价 5.00 EUR,约 42 人民币,由于原作者已长时间未更新,搬运者更推荐大家自行编译。
虽然原帖标的最高 1.19,但是这个插件并没有使用什么入侵式的方法,理论上可以支持 1.21.x。

关于 Emailer​

Emailer 可以通过电子邮件向你的玩家发送销售邮件、服务器更新、或任何你想要发给玩家的消息。这是将信息覆盖到更多人、促进玩家参与服务器活动、促进销售的新方式。给玩家通过电子邮件的方式,探索你的服务器。
  • API - 为开发者准备的 API,可以添加更多独特的功能,以及根据他们的需要进一步地个性化这个插件。
  • 真实 - 真实的邮件将由这个插件发送。插件连接 Gmail(或任何其它邮件服务),所以能发送真实的邮件。
  • HTML - 支持 HTML,以完全自定义你的邮件模板,并可以按需求创造出你自己的独特邮件。
  • SQL - 数据库支持,你可以使用 MySQL 数据库来储存数据,或者如果你没有部署数据库,也可以使用文件储存。
sample1.gif

sample2.gif



插件特色​

  • 有语言文件
  • 可完全个性化
  • 易用的GUI
  • 异步更新检查器
  • 基于性能
  • 开发者 API
  • 电子邮箱验证,使用随机生成的验证码
  • 支持 BungeeCord 和 Spigot
  • 使用 MySQL 或 纯文件 实现跨服务器通信
  • 过去指定时间后自动取消玩家验证
  • 当玩家不寻常连点,或者挂机时,进行人机验证测试
  • 指定在失败/成功/不活跃时执行操作
  • 在 BungeeCord 和 Spigot 上没有问题
  • 支持使用 MySQL 和 纯文件 储存数据
  • 邮件支持 HTML 和纯文本
  • 包含内置的预设邮件模板
  • 支持邮件验证冷却时间
  • 将邮件发送给特定的分组,例如所有已注册玩家、所有在线玩家,或者特定的玩家
  • 更多功能,可以向作者建议(但作者已经超过一年没更新了,恐怕找不到人了)


config.yml
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: "youremail@gmail.com" #The email, for example "google@gmail.com"
  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
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
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
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."

你可以点击这里找到命令与权限列表
  • 喜欢
反馈: PuddingKC
作者
MrXiaoM
查看
452
首次发布
最后更新

评分

0.00 星 0 次评分

MrXiaoM 的其他资源

后退
顶部 底部