工作原理
默认情况下,聊天消息仅对 50 格半径内的玩家可见。
想要向全服广播?只需在消息前加上 ! 即可发送全局消息。而且你可以自定义几乎所有内容!
非常适合角色扮演服务器、生存 SMP,或仅在附近玩家之间进行对话。
功能特性
- ? 本地聊天 — 只有范围内的玩家才能看到你的消息
- ? 全局聊天 — 在消息前添加
! 即可发送给所有人
- ⚙️ 完全可配置 — 通过
localchat.json(Fabric)/ config.yml(Paper)进行设置
- ? 轻量级 — 专注于稳定性和性能
⚙️ 配置说明
配置文件位于 config/localchat.json(Fabric)/ plugins/localchat/config.yml(Paper),并在首次启动时自动生成。
| 选项 |
描述 |
默认值 |
localRadius |
聊天范围(以方块为单位) |
50 |
globalPrefix |
全局消息的前缀 |
! |
localFormat |
本地消息的格式 |
§a[Local] §f%n§7: §f%m |
globalFormat |
全局消息的格式 |
§6[Global] §f%n§7: §f%m |
noOneNearbyMessage |
当范围内无人时的提示消息 |
§7[Nobody nearby heard you] |
在 Paper 服务器上,请使用 /blc reload 命令重新加载配置。
在格式字符串中,使用 %n 代表玩家名称,使用 %m 代表消息内容。
Better Chat 生态系统的一部分!
本模组与 我的另一个模组 完美兼容,该模组允许你自定义服务器的加入和离开消息,快去看看吧!
嗯,我没什么好说的了,你已经读到了这里。恭喜你,既然你都已经读到这儿了,请下载这个 ?
How it works
By default, chat messages are only visible to players within a 50 block radius.
Want to reach everyone on the server? Simply prefix your message with ! to send it globally. And you can customize nearly anything!
Perfect for roleplay servers, survival SMP, or just keeping conversations between nearby players.
Features
- 📍 Local chat — only players within range can read your messages
- 🌍 Global chat — prefix with
! to send to everyone
- ⚙️ Fully configurable via
localchat.json (Fabric) / config.yml (Paper)
- 🪶 Lightweight — clear focus on stability and performance
⚙️ Configuration
The config file is located at config/localchat.json (fabric) / plugins/localchat/config.yml (paper) and is created automatically on first launch.
| Option |
Description |
Default |
localRadius |
Chat range in blocks |
50 |
globalPrefix |
Prefix for global messages |
! |
localFormat |
Format of local messages |
§a[Local] §f%n§7: §f%m |
globalFormat |
Format of global messages |
§6[Global] §f%n§7: §f%m |
noOneNearbyMessage |
Message when nobody is in range |
§7[Nobody nearby heard you] |
Use /blc reload to reload the config on paper servers.
Use %n for the player name and %m for the message in format strings.
Part of the Better Chat Ecosystem!
This mod works perfectly well with my other mod which lets you configure the join and leave messages of your server, go check it out!
Well, I have nothing else to say, you reached the end. Congrats, now, as you have read so far, please download this 🙏
评论 0
登录后参与评分
还没有评论,来抢沙发吧