Repository navigation
Add plugin: server_log_filter - #650
Merged
Merged
Conversation
An MCDReforged plugin that hides noisy server console lines from the MCDR console with configurable regex rules, while leaving the server's own log file untouched. It uses InfoActionFlag.hidden() rather than discarding the info, so matched lines are still dispatched to MCDR's info reactors and plugin events. An overly broad rule therefore cannot break MCDR's own server startup / stop / player join-leave detection -- the worst case is that the line is not echoed to the console. Repository: https://github.com/Pau1am/MCDR-ServerLogFilter Release: ServerLogFilter-v1.0.1.mcdr (MCDR >= 2.13.0)
Contributor
|
Thanks for your contribution! 🎉 # 合并前检查单(供仓库维护者参考)
- *插件适合提交;
- 提交者有权提交;
- 所提交信息完整有效;
- 插件分类正确,名称、介绍和说明符合要求。
详见贡献指南 |
Contributor
|
Last updated at: Plugin Validation Report➕
|
| Info | Value | Valid |
|---|---|---|
| URL | Pau1am/MCDR-ServerLogFilter@main |
✅ |
| Authors | Pau1am |
- |
| License | MIT |
✅ |
| Labels | Management |
- |
| Introduction | en_us zh_cn |
✅ |
| Meta | mcdreforged.plugin.json |
✅ |
| Latest Release | 1.0.2 |
✅ |
| Meta | Value |
|---|---|
| Name | Server Log Filter |
| Version | 1.0.2 |
| Authors | Pau1am |
| Description | en_us Hide noisy server console lines from the MCDR console with configurable regex rules, without touching the server's own log file.zh_cn 用可配置的正则规则,把服务端的刷屏日志从 MCDR 控制台隐去,同时不影响服务端自身的日志文件。 |
AnzhiZhang
requested changes
Oct 1, 2026
Co-authored-by: Andy Zhang <37402126+AnzhiZhang@users.noreply.github.com>
Member
|
其实这玩意还是装 mod 效率高,让 MCDR 处理再咋样也会有性能损耗的 |
AnzhiZhang
approved these changes
Oct 2, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
新增插件
server_log_filter,由作者本人提交。插件作用:用一个可配置的正则规则列表,把服务端的刷屏日志从 MCDR 控制台隐去,同时完整保留服务端自己的日志文件。
默认内置一条规则,用于屏蔽 Minecraft 26.3「幽灵方块」自动修复机制的误报刷屏(Mojira MC-311474 / MC-311727,玩家正常跳跃和移动时也会触发,每人每 10 秒最多一条):
设计上的关键点:使用
InfoActionFlag.hidden()而非discarded(),因此匹配到的行仍会正常派发给 MCDR 的信息响应器与插件事件。即使规则写得过于宽泛,也不会破坏 MCDR 自身的「服务端启动 / 停止 / 玩家进出」检测——最坏情况只是控制台上看不到这一行。ServerLogFilter-v1.0.1.mcdr,非 pre-release)>=2.13.0(InfoFilterAPI 自 2.13 起可用)本地已验证:
Stopping the server/moved too quickly/moved wrongly等)不受影响I have read and checked that my PR meets the requirements in the Contributing Guidelines