Creative Logger
在 Discord 中查看你的员工实际上做了什么。 Creative-menu 抓取、命令执行、惩罚措施、 游戏模式更改等,每一项都有独立的频道和独立的开关。在游戏内设置即可, 无需重启服务器。
? BKHorn — Diamond Sword ×1 [Sharpness 5]
? BKHorn — Survival → Creative
? BKHorn — /ban Steve griefing
? BKHorn — Chest [world 120,64,-88]: took 12× Diamond
⌨ BKHorn (Discord) ran: /op Steve
快速开始
- 将 JAR 文件放入
plugins/目录并启动服务器。 - 运行
/creativelog setup,选择一个类别,粘贴 Discord Webhook URL。 - 完成。Creative logging 默认开启;其他功能按需开启。
可记录的内容
- Creative menu — 物品取出情况,仅记录新增的物品,因此重新排列背包不会触发记录
- Commands —
/give、/op和/deop、惩罚措施(/ban、/kick、/mute、/warn、…)、 白名单变更,以及你添加到监听命令列表中的任意命令 - Players — 加入与离开、游戏模式更改、聊天
- Console — 将实时控制台镜像到 Discord,并为每条控制台命令提供独立审计轨迹,无论其来源是: Discord 桥接、真实控制台还是 RCON
- 特定玩家 — 记录某人的所有行为,或仅记录你选择的部分。容器访问会报告取出了什么以及放回了什么,而不仅仅是记录了箱子被打开
- 自定义内容 — 使用你自己的触发条件、消息和频道的自定义日志记录器
注意事项
- 自定义措辞 — 每一行都是你可以重写的模板,或者可以转换为完整的 Discord Embed
- 数据不丢失 — 每个事件也会写入本地日志文件,且 Discord 发送通过重试队列处理速率限制。运行
/creativelog status进行检查 - Webhooks 已足够 — Discord Bot 是可选的,除非你主动开启否则默认关闭
- 更新保留设置 — 新选项会合并到你的配置文件中,你的原有值保持不变
- 豁免玩家 — 按类别豁免你不希望被记录的任何人
- 代理支持 — 适用于 discord.com 被屏蔽的主机
- 插件扩展 — 其他插件可以添加自己的占位符、发送自己的消息行,或重写并取消你的消息:API 文档及可构建示例
命令
| 命令 | 功能 |
|---|---|
/creativelog setup |
游戏内菜单 — 类别、Webhooks、监听和豁免玩家 |
/creativelog status |
投递诊断信息,求助时可安全粘贴 |
/creativelog reload |
重新读取配置文件 |
所有命令都需要 creativelog.admin 权限(默认 OP)。若要将菜单权限授予特定人员而非所有 OP,请在 admins.yml 中列出他们的名字 — 一旦该文件中有名字,其他人将无法看到该命令。
要求
- Paper 或 Purpur,Java 21 或更高版本
- 两个 JAR 文件,任选其一:
CreativeLogger-legacy-X.Y.Z.jar用于 Minecraft 1.21.x,或CreativeLogger-X.Y.Z.jar用于 26.1+
隐私
日志记录会将玩家数据 — 用户名、命令、Creative-menu 物品、游戏模式更改,以及如果你启用了相应类别,则包括加入/离开事件、聊天消息和控制台输出 — 发送到你配置的 Discord Webhooks 或频道, nowhere else。如果你记录你的玩家,请告诉他们。
- bStats: 通过 bStats 发送匿名服务器和配置统计信息 — 绝不包含玩家数据。可在
plugins/bStats/config.yml中退出。 - 更新检查: 插件会询问 Modrinth API 是否有新版本可用。使用
update-check: false关闭它。 - 控制台控制: 默认关闭。如果你启用它,允许列入白名单的 Discord 用户可以使用你提供的 Bot Token 在你选择的频道中运行服务器控制台命令。
Creative Logger
See what your staff actually do — in Discord. Creative-menu grabs, commands, punishments, gamemode changes and more, each with its own channel and its own on/off switch. Set it up in-game, no restart needed.
? BKHorn — Diamond Sword ×1 [Sharpness 5]
? BKHorn — Survival → Creative
? BKHorn — /ban Steve griefing
? BKHorn — Chest [world 120,64,-88]: took 12× Diamond
⌨ BKHorn (Discord) ran: /op Steve
Quick start
- Drop the JAR in
plugins/and start the server. - Run
/creativelog setup, click a category, paste a Discord webhook URL. - Done. Creative logging is on by default; everything else you switch on when you want it.
What it can log
- Creative menu — items taken, net-new only, so rearranging your inventory logs nothing
- Commands —
/give,/opand/deop, punishments (/ban,/kick,/mute,/warn, …), whitelist changes, plus anything you add to the watched-command list - Players — joins and leaves, gamemode changes, chat
- Console — mirrors the live console to Discord, with a separate audit trail of every console command whatever its origin: the Discord bridge, the real console, or RCON
- One specific player — log everything someone does, or just the parts you choose. Container visits are reported as what was taken and put back, not merely that a chest was opened
- Whatever you like — custom loggers with your own trigger, message and channel
Good to know
- Your wording — every line is a template you can rewrite, or turn into a full Discord embed
- Nothing is lost — every event is also written to a local log file, and Discord sends go through
a retry queue that handles rate limits.
/creativelog statuswhen you want to check - Webhooks are enough — a Discord bot is optional, and off unless you turn it on
- Updates keep your settings — new options are merged into your config, your values untouched
- Exempt players, per category, for anyone you don't want logged
- Proxy support, for hosts where discord.com is blocked
- Addons — other plugins can add their own placeholders, send their own lines, or rewrite and cancel yours: API docs and a buildable example
Commands
| Command | What it does |
|---|---|
/creativelog setup |
The in-game menu — categories, webhooks, watched and exempt players |
/creativelog status |
Delivery diagnostics, safe to paste when asking for help |
/creativelog reload |
Re-read the config files |
All need creativelog.admin (OP by default). To hand the menu to specific people instead of every
OP, list their names in admins.yml — once it has a name in it, nobody else can even see the command.
Requirements
- Paper or Purpur, Java 21 or newer
- Two JARs, pick one:
CreativeLogger-legacy-X.Y.Z.jarfor Minecraft 1.21.x, orCreativeLogger-X.Y.Z.jarfor 26.1+
Privacy
Logging sends player data — usernames, commands, creative-menu items, gamemode changes, and, if you enable those categories, join/leave events, chat messages and console output — to the Discord webhooks or channels you configure, and nowhere else. If you log your players, tell them.
- bStats: anonymous server and config statistics via
bStats — never player data. Opt out in
plugins/bStats/config.yml. - Update check: the plugin asks the Modrinth API whether a newer version exists. Turn it off with
update-check: false. - Console control: off by default. If you enable it, Discord users you allowlist can run server console commands from a channel you choose, using a bot token you provide.
下载 Creative Logger
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Creative Logger
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Creative Logger
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Creative Logger
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Creative Logger
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Creative Logger
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Creative Logger
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Creative Logger
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Creative Logger
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Creative Logger
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
关键修复 — 机器人在线状态可能导致服务器崩溃
如果您在 1.3.0 版本中使用了 bot.presence.enabled: true,请立即更新。 未使用机器人在线状态?您不受影响,插件的其他部分也未作更改。
使机器人显示为在线的网关连接在每次重连时都会泄漏一个 HTTP 客户端,且没有机制阻止多个连接同时存在——因此单个连接断开可能会引发雪崩效应。在报告此问题的服务器上,12 小时内达到了约 77,000 个 Discord 连接和 5,014 个泄漏的线程,直到 JVM 无法再创建新线程:服务器的主要线程已死亡,但进程仍在运行且端口保持开放,因此它仍然响应 ping 并看起来完全健康,但无人能加入游戏,甚至 stop 命令也不再生效。Discord 方面因该机器人连接过于频繁而重置了其 token——随后 1.3.0 将其报告为“您的 token 无效”,导致管理员在错误的地方寻找问题。
变更内容:
- 仅使用一个 HTTP 客户端,重复使用并正确关闭。重连现在不再产生额外开销。
- 一次只进行一个连接尝试。被取代的连接会被关闭,而不是继续运行。
- 真正的退避机制——初始等待 15 秒,每次翻倍直至最多 15 分钟;只有当连接持续健康运行 10 分钟后才会清除退避状态,以便连接抖动(flapping)像其他故障一样触发退避。
- 在线状态会在失败后自动关闭,而非无限重试:连续失败 10 次或一小时内尝试超过 20 次后,它将停止工作,并在控制台输出一条清晰的提示行,告知您日志记录功能不受影响,且执行
/creativelog reload将再次尝试。这仅仅是在线指示器——绝不应以牺牲服务器稳定性为代价。 - 正确解析关闭代码。被拒绝的 token 会立即停止,并且提示信息现支持区分“Discord 重置过的 token”与“用户输错的 token”。遇到速率限制时会等待其解除。若连接停止响应心跳,则会被识别为已死掉,而非继续显示为在线。
/creativelog status命令及设置菜单中的 Discord Bot 项目现在会显示在线状态的实际情况——例如connected(已连接)、reconnecting in 60s(60 秒后重连)或stopped(已停止)及原因——而不仅仅是选项是否勾选。
暂时无法更新? 请设置 bot.presence.enabled: false 并重启。Webhook 日志记录和机器人频道消息发送功能不受影响;在线状态纯粹是显示在线指示器。
如果 Discord 重置了您的机器人 token,请在 Discord 开发者门户中生成一个新的并粘贴进去——任何插件版本都无法恢复旧的 token。
备注
无需更改配置:更新只需替换 JAR 文件,现有的 config.yml 保持不变。
已在 Paper 1.21.11、26.1.2 和 26.2 上验证:完整测试套件全部通过,包括一个新编写的测试套件,该套件驱动本地模拟网关以证明重连行为,以及一项 71 分钟的稳定性测试,确认在线状态在无任何线程增长的情况下自行停止。
关于这个资源的讨论、问题反馈与使用心得
还没有讨论,来发第一帖吧
你是这个资源的作者?登录后可认领此资源。
相似资源
插件
PacketEvents 是一款专为 Minecraft Java 版打造的协议库,旨在简化数据包的处理与传输。
插件
ExyliaPlugins 的库。
插件
通过对话框或铁砧界面帮助你的 Anthme
插件
自定义你的Minecraft头像!
插件
重新定义服务器上的生物运输方式。使用高度可定制的口袋道具,安全地捕获、存储和释放任何实体。
插件
为基于 Spigot/Paper/Folia 的服务器添加对 Vivecraft 的支持
评论 0
登录后参与评分
还没有评论,来抢沙发吧