SimpleChat (fork++) 2.3.0
此分支版本(fork)的创建是因为原项目已不再维护。
日志:“这是 rantuhin 的 SimpleChat 模组及其由 stanlystark 制作的 1.21 分支版本的二次分支。”
一款适用于你服务器的简易聊天模组。
不支持单人游戏。
只需使用 !<message> 进行全服聊天,或使用 #<message> 进行世界聊天!
功能
- LuckPerms 集成 (测试于 5.4)
- Vanish 集成 (测试于 1.5.7)
- 全服、世界和本地聊天(可关闭)
- 彩色聊天(可关闭)
- 通过命令重载配置文件
- 清除聊天历史的命令
- 点击玩家名字时,显示建议的命令或文本提示
配置
配置文件位于 <游戏或服务器目录>/config/simplechat.json。
| 名称 | 描述 | 类型 |
|---|---|---|
| enable_chat_mod | 启用(true)或禁用(false)模组对聊天的处理。 | 布尔值 |
| enable_global_chat | 启用(true)或禁用(false)全局聊天功能。 | 布尔值 |
| enable_world_chat | 启用(true)或禁用(false)世界聊天。 | boolean | | enable_chat_colors | 启用(true)或禁用(false)在聊天中使用颜色代码。 | boolean |
| local_chat_format | 定义本地聊天的显示样式。 | String | | global_chat_format | 定义全局聊天的显示样式。 | String | | no_players_nearby_text | 当附近没有玩家时,为本地聊天定义一条提示信息。 | String | | no_players_nearby_action_bar | 启用(true)或禁用(false)操作栏消息。 | boolean | | chat_range | 指定本地聊天消息不再可见的距离阈值(在全局聊天启用的情况下)。 | int |
| suggests_when_you_click_on_the_player_name | 点击玩家名称时建议的命令或文本。(支持 Placeholder API 和 %player%) | String |
{
"enable_chat_mod": true,
"enable_global_chat": true,
"enable_world_chat": false,
"enable_chat_colors": false,
"local_chat_format": "&7%lp_prefix%&r%player%&7:&r &7%message%",
"global_chat_format": "&8[&2G&8] &7%lp_prefix%&r%player%&7:&r &e%message%",
"world_chat_format": "&8[&9W&8] &7%lp_prefix%&r%player%&7:&r &e%message%",
"no_players_nearby_text": "&f附近没有玩家。请使用 &e!<message> &f进行全局聊天。",
"no_players_nearby_action_bar": false,
"suggests_when_you_click_on_the_player_name": "/msg %player% ",
"chat_range": 100
}
您可以使用占位符 %player% 来指定玩家的昵称,并使用占位符 %message% 来指定他们在聊天中的消息。
%lp_group%LuckPerms - 显示玩家所属组别。%lp_prefix%LuckPerms - 显示玩家前缀。%lp_suffix%LuckPerms - 显示玩家后缀。
您可以使用 /simplechat 命令重新加载配置,而无需重启服务器或游戏(需要 权限等级 1 或更高)。
命令
/simplechat- 重新加载配置/simplechat clear- 清除聊天记录(所有玩家)
无 API
我正在移除 me.vetustus.server.simplechat.api.event.PlayerChatCallback,因为我认为没有必要将其移植到 1.21,而是改用标准事件 net.fabricmc.fabric.api.message.v1.ServerMessageEvents 中的 ALLOW_CHAT_MESSAGE。
许可证
采用 MIT 许可证。
SimpleChat (fork++) 2.3.0
This fork was created because the main project is no longer maintained.
Log: "This is a fork of the SimpleChat mod by rantuhin and its fork by stanlystark for 1.21"
A simple chat mod for your server.
Doesn't work in single player.
Just use !<message> for global chat or #<message> for world chat!
Features
- LuckPerms integration (tested 5.4)
- Vanish integration (tested 1.5.7)
- Global, world and local chat (you can turn it off)
- Color chat (you can turn it off)
- Reloading the configuration with the command
- Command to clear chat history
- Command or text that suggests when you click on the player's name.
Configuration
The configuration is located in <game or server directory>/config/simplechat.json.
| Name | Description | Type |
|---|---|---|
| enable_chat_mod | Enables (true) or disables (false) chat handling by the mod. | boolean |
| enable_global_chat | Enables (true) or disables (false) the global chat. | boolean |
| enable_world_chat | Enables (true) or disables (false) the world chat. | boolean |
| enable_chat_colors | Enables (true) or disables (false) the use of color codes in the chat. | boolean |
| local_chat_format | Defines the appearance of the local chat. | String |
| global_chat_format | Defines the appearance of the global chat. | String |
| no_players_nearby_text | Defines a message for local chat when there are no players nearby. | String |
| no_players_nearby_action_bar | Enables (true) or disables (false) action bar message. | boolean |
| chat_range | Specifies the distance after which local chat messages will not be visible (if global chat is enabled). | int |
| suggests_when_you_click_on_the_player_name | Command or text that suggests when you click on the player's name. (Support Placeholder API and %player%) |
String |
{
"enable_chat_mod": true,
"enable_global_chat": true,
"enable_world_chat": false,
"enable_chat_colors": false,
"local_chat_format": "&7%lp_prefix%&r%player%&7:&r &7%message%",
"global_chat_format": "&8[&2G&8] &7%lp_prefix%&r%player%&7:&r &e%message%",
"world_chat_format": "&8[&9W&8] &7%lp_prefix%&r%player%&7:&r &e%message%",
"no_players_nearby_text": "&fNo players nearby. Please use &e!<message> &ffor global chat.",
"no_players_nearby_action_bar": false,
"suggests_when_you_click_on_the_player_name": "/msg %player% ",
"chat_range": 100
}
You can use the placeholder %player% to specify the player's nickname and the placeholder %message% to specify their message in the chat.
%lp_group%LuckPerms - display player group.%lp_prefix%LuckPerms - display player prefix.%lp_suffix%LuckPerms - display player suffix.
You can reload the configuration without restarting the server or the game using the /simplechat command (requires permission level 1 or more).
Command
/simplechat- reload configuration/simplechat clear- clear history chat (all players)
NO API
I am removing me.vetustus.server.simplechat.api.event.PlayerChatCallback as I didn't see the need for it, and instead of porting it to 1.21, I am using the standard event net.fabricmc.fabric.api.message.v1.ServerMessageEvents ALLOW_CHAT_MESSAGE.
License
The MIT license is used.
下载 SimpleChat fork++
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 SimpleChat fork++
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 SimpleChat fork++
下载 SimpleChat fork++
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 SimpleChat fork++
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 SimpleChat fork++
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 SimpleChat fork++
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 SimpleChat fork++
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
1.20.1
关于这个资源的讨论、问题反馈与使用心得
还没有讨论,来发第一帖吧
你是这个资源的作者?登录后可认领此资源。
相似资源
模组
显示你正在注视的方块的信息。(适用于 Minecraft 1.16+ 的 Hwyla/Waila 分支)
模组
查看物品与配方
模组
使用 JavaScript 编辑配方、添加自定义物品、编写世界事件!
模组
在游戏画面角落显示附近世界地形、玩家、生物和实体的地图。可创建路径点,帮助你找到标记过的位置。
模组
AE2:一款流行的自动化与存储模组
模组
添加区块认领和玩家组队功能,并与 Xaero's Minimap 和 World Map 集成
评论 0
登录后参与评分
还没有评论,来抢沙发吧