LamMailBox 允许管理员向无需在线的玩家发送物品和富文本消息。这是一个适用于 Paper/Folia 1.20+ 的轻量级邮箱系统,支持通过命令或插件触发使用。
主要功能
- 离线投递:随时向任何玩家发送邮件及物品附件。物品在服务器端保存,直到被领取。
- 兼容命令:可使用
/lmb send 命令,或从其他插件中触发,用于即时奖励、礼物或活动掉落。
- 简洁 GUI:玩家可通过直观的界面浏览、阅读和领取邮件,领取时会自动检查库存。
- 富文本消息:支持颜色代码、
\n 换行符以及 Unicode 图标。
- 管理工具:可附加控制台命令、安排未来投递、设置过期时间,或通过
max-runs 限制重复次数。
- 批量目标:支持
player1;player2、allonline(当前在线玩家的快照)或 all(针对所有持久化用户)。
- 自动化邮件:支持类 Cron 风格的重复任务,以及首次加入礼包,并在服务器重启后提供补发机制。
- 灵活存储:可选择 YAML 或 SQLite 后端(建议在邮件数量超过约 1000 封时使用 SQLite)。
- 通知提醒:新邮件会触发聊天、标题和声音提示,并包含上线提醒。
- 适配 Folia/Paper:使用内置的 FoliaLib 调度器,确保跨平台时间处理的平滑性。

限制与路线图
- 目前尚不支持跨服务器同步或 Bungee/Velocity 支持。
命令
| 命令 |
权限 |
描述 |
/lmb |
lammailbox.open |
打开你的邮箱 |
/lmb <玩家> |
lammailbox.open.others |
查看其他玩家的邮箱 |
| /lmb view <id> | (无权限) | 按 ID 查看邮件(如果你能访问的话) |
| /lmb as <player> | lammailbox.view.as | 以其他玩家身份查看邮件界面 |
| /lmb send <player> <message> | lammailbox.admin | 通过命令或控制台发送邮件 |
| /lmb mailings | lammailbox.admin | 查看定时/首次加入自动化仪表盘 |
| /lmbreload | lammailbox.reload | 重新加载配置文件 |
| /lmbmigrate <from> <to> | lammailbox.migrate | 在存储后端(yaml/sqlite)之间迁移邮件数据 |
别名: /mailbox、/mail
额外权限
| 权限 |
描述 |
lammailbox.compose |
通过图形界面创建并发送邮件 |
lammailbox.items |
在撰写邮件时添加物品 |
lammailbox.delete |
从已发送视图删除已发送邮件 |
设置
- 将 jar 文件放入
plugins/ 目录,然后启动服务器以生成配置文件和数据库文件。
- 编辑
plugins/LamMailBox/config.yml 来自定义 GUI 文本、槽位、通知设置和默认过期天数。将任何按钮条目的值设置为 enabled: false 可从界面中移除该按钮。装饰填充物可通过 commands 列表运行控制台命令,支持使用 %player% 和 %uuid% 占位符。
- 授予适合你玩家等级的权限。
- 通过 GUI 或
/lmb send 命令发送邮件;在 mailings.yml 中设置循环投递,用于 cron 任务或首次加入工作流程(使用 /lmb mailings 查看状态)。
文档
需要示例或更深入的指导?查看维基:
- 主页 – 概述与快速入门。
- 发送邮件 – GUI 操作指南、命令语法、批量目标、附件。
- 自动邮件发送 – cron 技巧、场景库、追赶行为(catch-up behaviour)、
max-runs。
- 配置 – 通知、存储后端、权限、GUI 主题链接。
要求
- Paper 或 Folia 1.20+
- Java 21 运行时环境
- YskLib 1.6.0 或更高版本
支持
在玩家离线时投递邮件、礼物和奖励——无需繁琐的箱子交换。
LamMailBox lets admins deliver items and rich-text messages to players who don’t need to be online. It’s a lightweight mailbox system for Paper/Folia 1.20+ that works from commands or plugin triggers.
Key Features
- Offline delivery: Send mail and item attachments to any player, anytime. Items stay server-side until claimed.
- Command-friendly: Use
/lmb send or trigger it from other plugins for instant rewards, gifts, or event drops.
- Simple GUI: Players browse, read, and claim mail through an intuitive interface with inventory checks on pickup.
- Rich messages: Supports colour codes,
\n line breaks, and unicode icons.
- Admin tools: Attach console commands, schedule future deliveries, set expirations, or limit repeats via
max-runs.
- Bulk targets:
player1;player2, allonline (snapshot of current players), or all (persistent for everyone).
- Automated mailings: Cron-style repeating jobs and first-join bundles with catch-up when the server restarts.
- Flexible storage: Choose between YAML or SQLite backends (SQLite recommended beyond ~1000 mails).
- Notifications: Chat, title, and sound alerts for new mail plus join reminders.
- Folia/Paper ready: Uses bundled FoliaLib scheduler for smooth cross-platform timing.

Limitations & Roadmap
- No cross-server syncing or Bungee/Velocity support yet.
Commands
| Command |
Permission |
Description |
/lmb |
lammailbox.open |
Open your mailbox |
/lmb <player> |
lammailbox.open.others |
View another player's mailbox |
/lmb view <id> |
(no permission) |
View mail by ID (if you can access it) |
/lmb as <player> |
lammailbox.view.as |
View mail UI as another player |
/lmb send <player> <message> |
lammailbox.admin |
Send mail via command or console |
/lmb mailings |
lammailbox.admin |
View cron/first-join automation dashboard |
/lmbreload |
lammailbox.reload |
Reload configuration files |
/lmbmigrate <from> <to> |
lammailbox.migrate |
Migrate mail between storage backends (yaml/sqlite) |
Aliases: /mailbox, /mail
Additional Permissions
| Permission |
Description |
lammailbox.compose |
Create and send new mail through GUI |
lammailbox.items |
Add items to mail when composing |
lammailbox.delete |
Delete sent mail from sent mail view |
Setup
- Drop the jar in
plugins/ and start the server to generate config/database files.
- Edit
plugins/LamMailBox/config.yml to customize GUI text, slots, notification settings, and default expiry days. Set enabled: false on any button entry to remove it from the interface. Decoration fillers can run console commands via the commands list, with %player% and %uuid% placeholders.
- Grant the permissions that fit your ranks.
- Compose mail through the GUI or use
/lmb send; set up recurring deliveries in mailings.yml for cron or first-join workflows (/lmb mailings shows status).
Documentation
Need examples or deeper guidance? Check the wiki:
- Home – overview and quick start.
- Sending Mail – GUI walkthrough, command syntax, bulk targets, attachments.
- Automated Mailings – cron tips, scenario library, catch-up behaviour,
max-runs.
- Configuration – notifications, storage backends, permissions, GUI theming links.
Requirements
- Paper or Folia 1.20+
- Java 21 runtime
- YskLib 1.6.0 or above
Support
- Issues: GitHub
- Discord: YusakiDev
Deliver mail, gifts, and rewards while players are offline—no clunky chest exchanges needed.
评论 0
登录后参与评分
还没有评论,来抢沙发吧