
查看我的全新 Server Master 模组,适用于 NeoForge 1.21.1+ — 提供类似选项且功能更丰富!

Ma Chat
此模组的作用?
本模组专注于多人服务器的聊天改进。目前该模组非常简单,但我计划对其进行改进并添加更多功能、变量以及对其他模组的支持。
变量:
您可以在整个模组中使用以下变量
- %raw_username% - 玩家用户名(不含权限等级颜色)
- %username% - 玩家用户名(含权限等级颜色,如果已启用)
- %message% - 聊天消息
- %dimension% - 玩家所在维度
- %players% - 在线玩家数量
- %max_players% - 最大玩家数
功能:
1. 自定义聊天格式 - 更改默认聊天格式

此外,它还会根据权限等级显示不同的聊天颜色。
在 /ma-chat/chat.json中编辑
2. 加入时 MOTD 消息 - 设置加入时的 MOTD 消息

在 /ma-chat/motd.txt中编辑
3. 规则 - 设置您自己的规则集

在 /ma-chat/rules.json中编辑
4. 自动消息 - 设置由服务器发送的自动消息

在 /ma-chat/messages.json中编辑
玩家命令:
| 命令 |
参数 |
描述 |
| /rules |
<无;页码> |
显示服务器规则 |
OP 命令:
| 命令 |
参数 |
描述 |
| /mac reload |
- |
重新加载模组数据 |
| /mac rules add |
<规则内容> |
添加新规则 |
| /mac rules remove |
<ID> |
移除指定 ID 的规则 |
| /mac automessages add |
<消息内容> |
向自动消息添加新消息 |
| /mac automessages remove |
<ID> |
从自动消息中移除指定 ID 的消息 |
| /mac automessages frequency |
<秒数> |
设置自动消息的频率 |
安装方法:
- 将模组放入/mods目录,同时放置在客户端和服务器端,以确保模组正常工作。
已知问题:
待办事项:
- 添加清除聊天的命令
- 添加启用/禁用聊天的命令
- 添加聊天冷却时间
- 添加自定义加入/离开消息
- 添加更多变量和自定义选项
查看我的其他项目:
模组:
整合包:
- Awesome Tech - 专注于技术与探索的整合包,适用于 1.14.4!
- Explorators Pack - 专注于技术与探索的整合包,适用于 1.15.1!
如果您发现任何错误或问题,请提交新问题。
如果您有任何想法,欢迎留言告诉我接下来应该添加什么内容。

Check out my new Server Master mod for NeoForge 1.21.1+ — featuring similar options and much more!

Ma Chat
What this mod does?
This mod focus on chat improvements for multiplayer servers. Currently this mod is very simple but i plan to improve it and add more functions, variables and support for other mods.
Variables:
You can use this variables across the mod
- %raw_username% - Player username without rank color
- %username% - Player username with rank colors (if enabled)
- %message% - Chat message
- %dimension% - Player dimension
- %players% - Online player count
- %max_players% - Max players
Futures:
1. Custom chat format - Change default chat format

Also it adds different chat colors each permission level.
Edit in /ma-chat/chat.json
2. Join motd message - Set join motd message

Edit in /ma-chat/motd.txt
3. Rules - Set your own set of rules

Edit in /ma-chat/rules.json
4. Auto Messages - Set auto messages sent by server

Edit in /ma-chat/messages.json
Player Commands:
| Command |
Arguments |
Descrption |
| /rules |
<none; page> |
Show server rules |
OP Commands:
| Command |
Arguments |
Descrption |
| /mac reload |
- |
Reload mod data |
| /mac rules add |
<rule> |
Add new rule |
| /mac rules remove |
<id> |
Remove rule with id |
| /mac automessages add |
<message> |
Add new message to Auto Messages |
| /mac automessages remove |
<id> |
Remove message from Auto Messages with id |
| /mac automessages frequency |
<seconds> |
Set Auto Messages frequency |
Installation:
- Put mod in /mods directory for both client and server side in order to mod work property.
Known issues:
TODO:
- Add command to clear chat
- Add command to enable/disable chat
- Add cooldown on chat
- Add custom join/leave messages
- Add more variables and customization
Check out my other projects:
Mods:
- Ma Essentials - Useful commands, homes, kits, warps, server utils and utilities ...
- Ma Enchants - Adds various new enchants and curses
- Industrial Reborn - Industrial Reborn is a mod which adds many electrical machines, blocks, and items.
Modpacks:
- Awesome Tech - Modpack focused on tech and exploration for 1.14.4!
- Explorators Pack - Modpack focused on tech and exploration for 1.15.1!
If you found any bug or issue plase create new issue.
Comment if you have any ideas what I should add next.
评论 0
登录后参与评分
还没有评论,来抢沙发吧