SpyFilter

模组

· 作者 ratger

切换 SPY-chat 消息的可见性

0 本站下载 0 关注 更新于 8 个月前

最新 1.3.0+mc1.21.11 · 1.21.11 · Fabric

一键开服(送7天)

SpyFilter-RU

一个简单的模组,允许切换 SPY-聊天消息的可见性。
主要为 MineToday 服务器制作,用于辅助管理。

使用方法

默认按键为 J,但可以在控制设置中的 SpyFilter 部分重新绑定。
游戏启动时,SPY-聊天默认可见;按下切换键后会启用过滤器,隐藏所有匹配特定模式的消息。

v1.1.0 Preview

  • 哪些内容会被过滤?

    • 正则表达式:^SPY:.*?:.*$
    • 通俗来说:SPY: 用户名: 消息内容
    • 同时也会过滤包含 [SPY BOOK] 或 [SPY SIGN] 的消息。由于技术原因(服务器上此类消息可能通过 \n 换行显示),这些内容未使用正则表达式进行匹配。
  • 配置文件位于 assets/spyfilter.yml。您可以在其中自定义过滤规则。

  • 是否存在问题?

    • 是的。由于 Minecraft 的特殊机制,当进入带有自定义聊天纹理(如自定义前缀等)的某些服务器时,该模组可能导致游戏崩溃。鉴于目前对此需求不大,我并未为此重载模组或添加额外的库依赖来修复此问题。

SpyFilter-EN

A simple mod that allows toggling the visibility of SPY-chat messages.
Originally made for the MineToday server to assist with moderation.

Usage

By default, the toggle key is J, but it can be changed in the control settings under the SpyFilter category.
When the game launches, SPY-chat is visible. Pressing the toggle key activates a filter that hides all messages matching certain patterns.

  • What gets filtered?

    • By Regex: ^SPY:.*?:.*$
    • In plain terms: SPY: username: message
    • Also filters any messages containing [SPY BOOK] or [SPY SIGN]. These are not detected using Regex due to technical limitations — on the server, such messages may span multiple lines separated by \n.
  • The configuration file is stored in assets/spyfilter.yml. You can customize the filtering here.

  • Are there any issues?

    • Yes. Due to Minecraft's specifics, the mod may cause the game to crash on some servers with custom chat textures (custom prefixes, etc.). I chose not to overload the mod or add extra library dependencies to fix this, since currently there isn't much need for it.

GitHub

你是这个资源的作者?登录后可认领此资源。

评论 0

0.0
暂无评分
5 星
0
4 星
0
3 星
0
2 星
0
1 星
0
我的评分

登录后参与评分

还没有评论,来抢沙发吧

评论配图

相似资源