SimpleMail
描述:
我一直想写一个小型且简单的邮件插件,SimpleMail 就是这个插件的雏形。
SimpleMail 使用 SQLite 数据库来存储邮箱数据,允许用户之间互相留言,无论对方是否在线。
拥有管理员权限的用户可以查看所有活跃的邮箱,并在必要时清空它们。
已读的消息会在经过一定天数后过期,具体天数可在 config.yml 中配置。
欢迎提供建议/贡献。
安装方法:
1. 下载 .jar 文件
2. 将 .jar 文件放入你的 plugins 目录
3. 重启服务器
配置:
• MaxMailboxSize - 每个邮箱允许的最大消息数量
• ShowInboxOnJoin - 登录时显示收件箱中的消息总数
• MailExpiration - 已读消息过期(并被删除)前的天数
命令:
•
/Mail - 主菜单
•
/inbox - 查看你的收件箱
•
/outbox - 查看你的发件箱
•
/sendmail <player> <message> - 发送邮件
•
/readmail <id> - 阅读你的一条消息
•
/delmail <id> - 删除你的一条消息
管理员命令
•
/mailboxes - 显示活跃邮箱
•
/clearmailbox - 清空某个活跃邮箱
权限:
• simplemail.inbox - 拥有并使用邮箱
• simplemail.outbox - 访问发件箱
• simplemail.sendmail - 发送邮件
• simplemail.admin - 查看/使用管理员命令
待办事项:
•
玩家加入时“新消息”通知的小延迟
•
发件箱
更新日志:
0.3.8
- 新增:在命令菜单 (/mail) 中添加发件箱
- Bug修复:清理邮件过期逻辑
- Bug修复:部分用户无法读取/删除邮件,大小写检测问题已解决
0.3.7
- 新增:发件箱
- Bug修复:[重大] 名称 / 显示名称相关问题。
- Bug修复:[重大] 玩家登录时的错误。
0.3.6
- 新增:可配置的新邮件通知显示延迟
- Bug修复:更新收件箱以根据玩家的实际名称获取邮件,而非显示名称。
0.3.5
- 玩家加入时,新消息通知有 3 秒延迟
0.3
- 新增可配置的邮件过期时间
- 新增用于删除过期邮件的 purge 命令
- 移除权限 SimpleMail.clear
- 更新加入时的收件箱公告,现在仅报告新消息
0.2
- 代码重构
- 更改数据库访问方式。
0.1
- 初始创建
SimpleMail
Description:
I've been wanting to write a small and simple mail plugin for a while now, SimpleMail is the beginnings of that plugin.
SimpleMail uses an SQLite database to store mailbox data, allowing users to leave messages for each other whether offline or not.
Users with admin permissions are able to view all active mailboxes, and clear them if necessary.
Messages that have been read will expire after so may day, configurable in config.yml.
Suggestions/contributions more than welcome.
Installation:
1. Download the .jar
2. Place the .jar in your plugins directory
3. Restart the server
Configuration:
• MaxMailboxSize - Max messages allowed per mailbox
• ShowInboxOnJoin - Show total messages in inbox on join
• MailExpiration - Number of days before a read message expires (and is deleted)
Commands:
•
/Mail - Main Menu
•
/inbox - Check your inbox
•
/outbox - Check your outbox
•
/sendmail <player> <message> - Send mail
•
/readmail <id> - Read one of your messages
•
/delmail <id> - Delete on of your messages
Admin Commands
•
/mailboxes - Display Active Mailboxes
•
/clearmailbox - Clear an Active Mailbox
Permissions:
• simplemail.inbox - Have and access a mailbox
• simplemail.outbox - Access outbox
• simplemail.sendmail - Send mail
• simplemail.admin - View/Use admin commands
To Do:
•
Small delay on playerjoin 'New Messages' notification
•
Outbox
Change-Log:
0.3.8
- Added: Outbox to Commands Menu (/mail)
- Bugfix: Cleaned up mail expiration
- Bugfix: Some users unable to read/delete mail, issues with case detection resolved
0.3.7
- Added: Outbox
- BugFix: [Major] issues with names / display-names.
- BugFix: [Major] Error on player login.
0.3.6
- Added: Configurable delay for new mail notification display
- Bugfix: update inbox to get mail for player's name, and not player's display name.
0.3.5
- 3 second delay on New Message notification upon playerjoin
0.3
- Added configurable message expirations
- Added purge command for deleting expired mail
- Removed permission SimpleMail.clear
- Updated inbox announcement on join, now only reports new messages
0.2
- Code restructure
- Changed Database access method.
0.1
- Initial Creation
评论 0
登录后参与评分
还没有评论,来抢沙发吧