控制台过滤器
允许你隐藏包含配置字符串或匹配配置正则表达式的控制台消息。此模组可以安装在客户端或服务端,但两端都不是必须的。
配置文件
以下是如何在配置文件中基本过滤器以隐藏所有包含 "Can't keep up" 和 "Player moved too quickly" 的控制台消息的示例:
#任何包含以下任一字符串的控制台消息都将被隐藏。
basicFilters = ["Can't keep up", "Player moved too quickly"]
以下是如何使用正则表达式过滤器来隐藏类似 "Running 2156ms or 43 ticks behind" 的消息的示例:
#任何包含以下任一正则表达式的控制台消息都将被隐藏。使用 Java 正则表达式语法。反斜杠必须加倍,即使用 \\s 而不是 \s 来匹配空白字符。
regexFilters = ["Running \\d+ms or \\d+ ticks behind"]
以下是如何使用日志记录器过滤器来隐藏来自 JEI 的消息的示例:
#任何名称包含以下任一字符串的日志记录器发出的控制台消息都将被隐藏。
loggerFilters = ["jei"]
整合包
是的,你可以在你的整合包中使用此模组。
支持
如果你喜欢这个模组并希望支持该项目,请随时 在 PayPal 上留下捐赠。非常感谢你的支持!
赞助商
本项目由 BisectHosting 赞助。如果你正在寻找服务器,请查看他们的托管计划,并在结账时 使用促销代码 Chaos 获得首月 25% 的折扣!
Console Filter
Allows you to hide console messages that contain configured strings or match configured regular expressions. This mod can be installed on either the client or the server, but it is not required on either side.
Config
Here is an example of how to use a basic filter in the config to hide all console messages containing "Can't keep up" and "Player moved too quickly":
#Any console messages containing any of these strings will be hidden.
basicFilters = ["Can't keep up", "Player moved too quickly"]
Here is an example of how to use a regex filter to hide messages like "Running 2156ms or 43 ticks behind":
#Any console messages containing any of these regular expressions will be hidden. Uses Java regex syntax. Backslashes must be doubled, i.e. use \\s instead of \s to match whitespace.
regexFilters = ["Running \\d+ms or \\d+ ticks behind"]
Here is an example of how to use a logger filter to hide messages from JEI:
#Any console messages from loggers with a name containing any of these strings will be hidden.
loggerFilters = ["jei"]
Modpacks
Yes, you can use this mod in your modpack.
Support
If you enjoy the mod and would like to support the project, feel free to leave a donation on PayPal. Support is greatly appreciated!
Sponsor
This project is sponsored by BisectHosting. If you're looking for a server, check out their hosting plans and use promo code Chaos at checkout to get 25% off your first month!
评论 0
登录后参与评分
还没有评论,来抢沙发吧