DiscordLogger
将 Minecraft 服务器中发生的事件发布到 Discord 频道,格式为整洁的嵌入卡片或纯文本。只需一个 Webhook URL,无需托管机器人,无需 OAuth,也无需控制面板。
适用于 CraftBukkit、Spigot、Paper 及其分支,支持从 Minecraft 1.8 到 26.3 的版本——一个 JAR 文件兼容所有版本。
如何呈现
带有每事件颜色、玩家头像和可配置作者行的丰富嵌入卡片——或者如果你希望频道保持安静,也可以使用纯 Markdown 文本。
细节丰富的事件会拥有独立的字段。死亡事件会显示原因,基于服务器端伤害上下文构建,以便 Java 版和基岩版玩家阅读一致,并可选择性地显示地点。封禁事件会显示执行者、原因以及持续时间。
记录内容
玩家 —— 加入、离开、聊天、命令、死亡、进度、传送、游戏模式变更。
服务器 —— 控制台命令、启动、停止、爆炸——每次爆炸都会保存在一个可搜索的日志中,你可以在游戏中查询它。
管理 —— 封禁、解封、踢出、赋予管理员权限、移除管理员权限、白名单变更。
其他任何内容 —— 你可以从服务器上的任意命令创建自定义事件。Essentials 的家坐标、LuckPerms 的权限组变更、商店购买:只要是由命令触发的行为,你都可以记录它,并为其指定标题、颜色和 Webhook。
上述每种事件都是独立的开关,拥有自己的颜色,并且可以路由到各自的 Webhook——因此管理信息可以发送到仅限员工查看的频道,而聊天信息则发送到公开频道。
为什么你可能选择这个插件
你可以询问是什么炸毁了某个区域。 每次爆炸也会记录到一个纯文本 explosions.csv 文件中,并且 /discordlogger lookup 命令按位置而非时间进行搜索——站在坑里运行该命令,即可获取最近的爆炸事件及其原因、发生时间、规模大小以及二十格范围内的玩家。记录保留的时间由你决定,从几分钟到几年不等。
它会确认事情是否真正发生。 封禁记录是在封禁列表变更后生成的,而不是当有人输入 /ban 时生成。如果命令失败或被其他插件取消,不会产生声称其成功的消息。
它知道不该记录什么。 /login、/register 和 /msg 默认会被过滤,因为记录这些操作会将密码和私人消息发布到你的频道。共有十五种过滤器覆盖其余情况:忽略特定玩家、世界、命令、死亡原因、爆炸来源、短聊天、短传送等。
每条字符串都属于你。 lang.yml 包含了插件发送的所有消息。你可以重新措辞、翻译或精简它们——包括所有三十种死亡原因的描述。
它尊重隐身状态。 被 EssentialsX、SuperVanish、PremiumVanish 或 CMI 隐藏的员工依然保持隐藏。管理功能故意排除此项:如果因为某人隐身就隐藏封禁记录,会在关键时刻破坏审计追踪。
处理了基岩版玩家。 支持与 Geyser 和 Floodgate 配合使用,来自基岩版的加入可以被标记为此类。
设置
- 将 JAR 文件放入
plugins/ 目录并启动服务器。
- 在 Discord 中:频道设置 → 集成 → Webhooks → 新建 Webhook,然后复制 URL。
- 在控制台中运行
/discordlogger webhook <url>,或将其粘贴到 config.yml 中。
这就是全部设置。还有一个 配置生成器,可以在浏览器中构建完整的 config.yml,如果你更喜欢点击而不是编辑 YAML 的话。
你的 Webhook URL 是一个凭证。 任何持有它的人都可以以你的服务器名义向该频道发布消息。插件永远不会回显它,在命令日志中对其进行脱敏处理,并在 Tab 补全中将其隐藏。
要求
|
|
| 服务器 |
CraftBukkit、Spigot、Paper 或其分支 —— 1.8 到 26.3 |
| Java |
8 或更高版本 |
| Discord |
一个 Webhook URL。无需机器人、令牌或托管服务 |
某些功能需要具有底层特性的服务器版本:成就(advancements)在 1.12 之前作为成就(achievements)记录,方块爆炸需要 1.8.3 版本。插件会在启动时进行检查,并告知哪些功能你的服务器无法提供,而不是静默失败。
隐私
匿名使用情况数据会发送至 bStats:包括服务器软件、版本、启用了哪些事件以及发送是否成功。绝不会发送 Webhook URL、玩家名称、UUID、IP 地址、消息内容、坐标或世界名称。计数以范围形式报告而非精确数字,因此图表不会成为指纹标识。可以在 plugins/bStats/config.yml 中关闭此功能。
链接
免费且开源,采用 MIT 许可证。
DiscordLogger
Posts what happens on your Minecraft server to a Discord channel, as clean embeds
or plain text. One webhook URL, no bot to host, no OAuth, no dashboard.
Runs on CraftBukkit, Spigot, Paper and forks, from Minecraft 1.8 through 26.3 — one JAR for all of them.
How it reads
Rich embeds with per-event colours, player heads and a configurable author line — or
plain Markdown text, if you would rather your channel stayed quiet.
Events with detail get their own fields. A death carries the cause, built from
server-side damage context so it reads the same for Java and Bedrock players, and
optionally where it happened. A ban carries who issued it, why, and for how long.
What it logs
Players — join, quit, chat, commands, deaths, advancements, teleports, gamemode changes.
Server — console commands, start, stop, explosions — and every explosion is kept
in a searchable log you can query in game.
Moderation — bans, unbans, kicks, op, deop, whitelist changes.
Anything else — build your own events from any command on the server. Essentials
homes, LuckPerms rank changes, shop purchases: if a command triggers it, you can log
it, with its own title, colour and webhook.
Every event above is an independent toggle with its own colour, and can be routed to
its own webhook — so moderation can go to a staff-only channel while chat goes to a
public one.
Why you might pick this one
You can ask what blew up a spot. Every explosion is also recorded to a plain
explosions.csv, and /discordlogger lookup searches it by place rather than by
time — stand in the hole, run the command, and get the nearest explosions with what
caused them, when, how big, and who was within twenty blocks. Records are kept for
however long you choose, from minutes to years.
It checks that things actually happened. A ban is logged after the ban list
changes, not when someone types /ban. A command that failed, or was cancelled by
another plugin, does not produce a message claiming it worked.
It knows what not to log. /login, /register and /msg are filtered by
default, because logging them publishes passwords and private messages to your
channel. Fifteen filters cover the rest: ignore players, worlds, commands, death
causes, explosion sources, short chat, short teleports, and more.
Every string is yours. lang.yml holds every message the plugin sends. Reword
it, translate it, or strip it back — including all thirty death causes.
It respects vanish. Staff hidden by EssentialsX, SuperVanish, PremiumVanish or
CMI stay hidden. Moderation is deliberately exempt: hiding a ban because the person
was vanished would gut the audit trail exactly when it matters.
Bedrock players are handled. Works with Geyser and Floodgate, and joins from
Bedrock can be flagged as such.
Setup
- Drop the JAR in
plugins/ and start the server.
- In Discord: Channel Settings → Integrations → Webhooks → New Webhook, then copy the URL.
- Run
/discordlogger webhook <url> in the console, or paste it into config.yml.
That is the whole setup. There is also a
config generator that builds a
complete config.yml in your browser if you would rather click than edit YAML.
Your webhook URL is a credential. Anyone holding it can post to that channel as
your server. The plugin never echoes it back, redacts it from command logging, and
keeps it out of tab-completion.
Requirements
|
|
| Server |
CraftBukkit, Spigot, Paper or a fork — 1.8 to 26.3 |
| Java |
8 or newer |
| Discord |
A webhook URL. No bot, no token, no hosting |
A few features need a version that has the underlying feature: advancements are
logged as achievements before 1.12, and block explosions need 1.8.3. The plugin
checks at startup and says which ones your server cannot provide, rather than
failing quietly.
Privacy
Anonymous usage data is sent to bStats:
server software, versions, which events are enabled, and whether sends are
succeeding. Never webhook URLs, player names, UUIDs, IP addresses, message
content, coordinates or world names. Counts are reported as ranges rather than exact
numbers, so a chart cannot become a fingerprint. It can be switched off in
plugins/bStats/config.yml.
Links
Free and open source under the MIT licence.
评论 0
登录后参与评分
还没有评论,来抢沙发吧