VFP (ViaFabricPlus) ChatFilter 补丁 是一个小型修改,用于替换 ViaLegacy 库(ViaFabricPlus 使用该库连接至旧版 Minecraft 服务器)中提供的聊天过滤逻辑,允许玩家配置自定义的聊天过滤行为,甚至允许发送任意字符。
这在加入具有自定义 font.txt、一组自定义字符或允许所有字符的服务器时非常实用。一个生动的例子是:使用插件和俄语版 font.txt 的俄罗斯 b1.7.3 服务器,而未打补丁的 ViaLegacy 并不知晓这些内容。

然而,当加入不受支持的服务器(即使用原版 font.txt)时,如果输入其他字符,玩家会被踢出并收到“聊天中包含非法字符”或类似消息。因此,不要在任何地方随意使用此功能,并确保服务器已允许这些字符。
与 ViaFabricPlus 一样,这也是一个仅客户端模组。
配置
本模组拥有一个 GUI 配置界面,位于 “ViaFabricPlus” 按钮旁边。
在配置界面中,有几个按钮可让你更改本模组的行为(请查看画廊)。
模式(第一个按钮)
目前提供两种模式:仅允许配置文件 font.txt 中的字符(位于 config/vfpchatfilterpatch/font.txt),或允许任意字符。
强制重新加载 font.txt(第二个按钮)
如果在文件中进行了更改,并且由于某些原因需要在不重启整个游戏的情况下重新加载,点击此按钮即可强制重新加载 font.txt。
替换序列
如果当前模式使用的是 font.txt 中的字符,则任何非法字符都将被替换为“替换序列”。默认为空,因此任何非法字符都会被移除;但如有需要,你可以将其替换为其他字符甚至字符串(例如 *、#)。
许可证
本模组采用 Apache License 2.0 许可证授权。
VFP (ViaFabricPlus) ChatFilter Patch is a small modification that replaces the logic of chat filter code provided in ViaLegacy library (which ViaFabricPlus uses to connect to ancient mc version servers), allowing players to configure custom behavior of chat filter or even allow any characters to be sent.
This is practically useful when joining to servers with custom defined font.txt, a set of custom characters or with all characters allowed. A vivid example: Russian b1.7.3 servers with plugins and russian version of font.txt, which is unknown for an unpatched ViaLegacy.

However, when joining to the unsupported server (i.e. using vanilla font.txt), by writing other characters the player will be kicked out with the message "Illegal characters in chat" or similar. So don't try to use it everywhere, and make sure the server has allowed these characters.
As ViaFabricPlus, this is an only client-side mod.
Configuration
This mod has a GUI configuration screen located next to the "ViaFabricPlus" button.
Within the configuration screen, there are several buttons to allow you to change the behaviour of this mod (check gallery).
Modes (First Button)
There are currently two modes available - allowing only characters from the config font.txt (located config/vfpchatfilterpatch/font.txt) or allowing any characters.
Force Reload font.txt (Second Button)
This button simply force reloads the font.txt, if the changes were made in the file and for some reason a reload is required without restarting the whole game.
Replace Sequence
If the current mode is using the characters from font.txt, then any illegal characters will be replaced with the "replace sequence". By default, it's empty, so any illegal character is removed; however, you can make it replace with other characters or even strings if needed (i.e. *, #).
License
This mod is licensed under Apache License 2.0.
评论 0
登录后参与评分
还没有评论,来抢沙发吧