Basic Chat
适用于 Fabric 1.21.x 的轻量级高性能聊天格式化模组。
Basic Chat 允许你使用现代 MiniMessage 组件完全自定义服务器的聊天外观。它设计得简洁易用,无依赖负担,并且兼容标准的 Fabric 前缀/后缀提供程序。
功能
- MiniMessage 支持:在聊天配置中使用
<gradient>、<rainbow> 和 <hover> 等现代标签。
- 占位符集成:完整支持前缀、后缀和用户名。
- 可重载配置:通过
/basicchat reloadconfig 即时更新聊天样式,无需重启服务器。
- 轻量级:对服务器性能影响极小。
默认布局
默认情况下,该模组按以下结构格式化聊天内容:
[前缀] [用户名][后缀] >> [消息]
当前默认字符串:
<prefix_optional> <username><suffix_optional> <dark_gray>>></dark_gray> <message>
配置
设置通过 config/basicchat.conf 文件进行管理。你可以使用以下占位符来构建你的布局:
| 占位符 |
描述 |
<prefix_required> |
必填前缀。 |
<prefix_optional> |
如果为空则消失的前缀(防止出现尾部空格)。 |
<username> |
玩家的纯文本名称。 |
<suffix_optional> |
可选后缀(默认为空)。 |
<message> |
玩家的消息(支持 MiniMessage)。 |
权限
basicchat.commands.basicchat - 访问基础命令。
basicchat.commands.reloadconfig - 允许在游戏中重载配置。
许可与源码
- 许可:保留所有权利 (All Rights Reserved)。
- 源代码:可在 GitHub 上获取,以透明化并便于报告问题。
Basic Chat
A lightweight, high-performance chat formatting mod for Fabric 1.21.x.
Basic Chat provides full control over your server's chat appearance using modern MiniMessage components. It is designed to be simple, dependency-friendly, and compatible with standard Fabric prefix/suffix providers.
Features
- MiniMessage Support: Use modern tags like <gradient>, <rainbow>, and <hover> in your chat configuration.
- Placeholder Integration: Full support for prefixes, suffixes, and usernames.
- Reloadable Config: Update your chat style on the fly with /basicchat reloadconfig—no restarts required.
- Lightweight: Minimal impact on server performance.
Default Layout
By default, the mod formats the chat using the following structure:
[Prefix] [Username][Suffix] >> [Message]
Current default string:
<prefix_optional> <username><suffix_optional> <dark_gray>>></dark_gray> <message>
Configuration
Settings are managed via config/basicchat.conf. You can use the following placeholders to build your layout:
| Placeholder |
Description |
| <prefix_required> |
A mandatory prefix. |
| <prefix_optional> |
A prefix that disappears if empty (prevents trailing spaces). |
| <username> |
The player's name in plain text. |
| <suffix_optional> |
An optional suffix (defaults to empty). |
| <message> |
The player's message (supports MiniMessage). |
Permissions
- basicchat.commands.basicchat - Access to the base command.
- basicchat.commands.reloadconfig - Allows reloading the config in-game.
License and Sources
- License: All Rights Reserved.
- Source Code: Available on GitHub for transparency and issue reporting.
评论 0
登录后参与评分
还没有评论,来抢沙发吧