LastSeenDiscord
LastSeenDiscord 让你的 Paper 服务器上的玩家活动状态在 Discord 频道中保持更新。
它通过 Discord Webhook 维护一条或多条消息,根据玩家最近上线服务器的时间显示哪些玩家处于活跃或离线状态。
该插件旨在后台自动运行,无需手动更新 Discord。
1.2.1 版本更新内容
- 新增
/lsd status命令用于检查同步状态。 - 新增安全的 Webhook 连接测试功能。
- 新增受保护的消息状态重置命令。
- 新增独立的命令权限和 Tab 补全功能。
- 新增可选的页码、重复标题以及玩家活动摘要。
- 新增可配置的活动时区和日期格式。
- 新增可选的 Discord 原生时间戳。
- 禁用 Webhook 消息中的 Discord @提及,以防止意外 ping 用户。
- 更新至 Paper 26.3 Build 244 Stable。
- 更新了多个内部依赖项和构建工具。
功能介绍
LastSeenDiscord 可以自动执行以下操作:
- 在 Discord 中显示已知的服务器玩家。
- 将玩家标记为活跃或不活跃。
- 按字母顺序对玩家进行排序。
- 在玩家加入或离开时更新列表。
- 按照固定时间表定期更新。
- 将大型玩家列表拆分到多条 Discord 消息中。
- 过滤显示的玩家。
- 显示可选的活动日期和时间戳。
- 如果托管的 Discord 页面被删除,会自动重建。
该插件会记住它所管理的 Discord 消息,因此常规更新会编辑现有消息,而不是不断创建新消息。
玩家过滤
你可以控制列表中显示哪些玩家。
选项包括:
- 仅白名单内的玩家。
- 仅活跃玩家。
- 仅不活跃玩家。
- 排除特定玩家名称。
- 排除特定玩家 UUID。
这些选项可以组合使用。
Discord 显示选项
Discord 输出可以保持简洁,也可以通过以下选项进行自定义:
- 自定义标题。
- 页码。
- 多页重复标题。
- 总人数、活跃人数和不活跃人数统计。
- 活动日期。
- 自定义时区和日期格式。
- Discord 原生时间戳。
Webhook 消息中禁用了 Discord @提及,有助于防止意外 ping 用户、角色、@everyone 或 @here。
管理命令
LastSeenDiscord 包含以下命令:
- 手动同步 Discord。
- 重新加载配置文件。
- 检查同步状态。
- 测试 Webhook 连接。
- 从异常的 Discord 消息创建问题中恢复。
- 安全地重置跟踪的 Discord 消息状态。
提供独立的命令权限,而服务器管理员默认拥有完全访问权限。
要求
- Paper 26.3
- Java 25
- 一个 Discord Webhook
专为可靠同步设计
LastSeenDiscord 包含针对 Discord 速率限制、临时连接问题、已删除消息以及中断的消息创建过程的保护措施。
如果在创建消息时 Discord 返回不确定的结果,插件会在可能创建重复消息之前停止,并允许管理员随后安全地恢复。
对于大多数服务器,设置非常简单:
- 安装插件。
- 将你的 Discord Webhook 添加到
config.yml。 - 重启服务器或运行
/lsd reload。 - 让 LastSeenDiscord 处理其余部分。
LastSeenDiscord
LastSeenDiscord keeps a Discord channel updated with the activity status of players on your Paper server.
It uses a Discord webhook to maintain one or more messages showing which players are active or inactive, based on how recently they were seen on the server.
It is designed to run automatically in the background without needing someone to manually update Discord.
What's New in 1.2.1
- Added
/lsd statusfor checking synchronization status. - Added a safe webhook connection test.
- Added a guarded message-state reset command.
- Added separate command permissions and tab completion.
- Added optional page numbers, repeated headings, and player activity summaries.
- Added configurable activity timezone and date formatting.
- Added optional Discord-native timestamps.
- Disabled Discord mentions in webhook messages to prevent accidental pings.
- Updated to Paper 26.3 Build 244 Stable.
- Updated several internal dependencies and build tools.
What It Does
LastSeenDiscord can automatically:
- Show known server players in Discord.
- Mark players as active or inactive.
- Sort players alphabetically.
- Update when players join or leave.
- Update on a regular schedule.
- Split large player lists across multiple Discord messages.
- Filter which players are shown.
- Show optional activity dates and timestamps.
- Recreate a managed Discord page if it is deleted.
The plugin remembers the Discord messages it manages, so normal updates edit the existing messages instead of constantly creating new ones.
Player Filtering
You can control which players appear in the list.
Options include:
- Whitelisted players only.
- Active players only.
- Inactive players only.
- Excluded player names.
- Excluded player UUIDs.
These options can be combined.
Discord Display Options
The Discord output can be kept simple or customized with options such as:
- Custom heading.
- Page numbers.
- Repeated headings on multiple pages.
- Total, active, and inactive player counts.
- Activity dates.
- Custom timezone and date format.
- Discord-native timestamps.
Discord mentions are disabled in webhook messages, helping prevent accidental user, role, @everyone, or @here pings.
Admin Commands
LastSeenDiscord includes commands for:
- Manually syncing Discord.
- Reloading the configuration.
- Checking synchronization status.
- Testing the webhook connection.
- Recovering from unusual Discord message creation problems.
- Safely resetting tracked Discord message state.
Individual command permissions are available, while server operators receive full access by default.
Requirements
- Paper 26.3
- Java 25
- A Discord webhook
Designed for Reliable Syncing
LastSeenDiscord includes protections for Discord rate limits, temporary connection problems, deleted messages, and interrupted message creation.
If Discord returns an uncertain result while creating a message, the plugin stops before creating possible duplicates and allows an administrator to safely recover afterward.
For most servers, setup is simply:
- Install the plugin.
- Add your Discord webhook to
config.yml. - Restart the server or run
/lsd reload. - Let LastSeenDiscord handle the rest.
下载 Last Seen to Discord
下载 Last Seen to Discord
下载 Last Seen to Discord
下载 Last Seen to Discord
下载 Last Seen to Discord
下载 Last Seen to Discord
下载 Last Seen to Discord
下载 Last Seen to Discord
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Last Seen to Discord
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
[1.2.1]
安全
- 禁用 Webhook 消息负载中的 Discord 提及。
新增
- 添加同步状态、安全的 Webhook 测试命令,以及带有权限和 Tab 补全的已确认消息状态重置命令。
- 为多消息 Discord 输出添加可选页码、重复标题和过滤后的活动摘要。
- 添加可配置的活动时区、日期格式和 Discord 原生时间戳输出。
依赖
- 更新 Paper API 至
26.3.build.244-stable。 - 更新 Gson 至
2.15.0,Gradle 至9.8.2。 - 更新 GitHub Actions 依赖项。
1.2.0
已更改
- Paper API 从 26.3 Beta 159 更新至稳定版 178。
- 更新了 Paper 26.3 稳定版的文档。
关于这个资源的讨论、问题反馈与使用心得
还没有讨论,来发第一帖吧
你是这个资源的作者?登录后可认领此资源。
相似资源
插件
PacketEvents 是一款专为 Minecraft Java 版打造的协议库,旨在简化数据包的处理与传输。
插件
ExyliaPlugins 的库。
插件
通过对话框或铁砧界面帮助你的 Anthme
插件
重新定义服务器上的生物运输方式。使用高度可定制的口袋道具,安全地捕获、存储和释放任何实体。
插件
为基于 Spigot/Paper/Folia 的服务器添加对 Vivecraft 的支持
插件
一个在游戏内运行的 Minecraft 地图编辑器! 支持选区、蓝图、复制粘贴、笔刷和脚本。 可在创造模式中使用,也可在生存模式中临时使用。
评论 0
登录后参与评分
还没有评论,来抢沙发吧