|
SimpleChat (fork) (SimpleChat (fork))Github |相关wiki |源站链接支持: fabricA simple chat mod for your server, with integration with LuckPerms and FTB Teams.
Features
- FTB Teams integration _(tested 2001.1.4)_
- LuckPerms integration _(tested 5.4.25)_
- Global, world and local chat (you can turn it off)
- Color chat (you can turn it off)
- Reloading the configuration with the command
- Support [PlacehoderAPI](链接) (From 1.19.4)
- Added support color tags _(Example)_ (From 1.19.4)
- For developers: Player chat event
Configuration
The configuration is located in `/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 |
...
(此处省略了部分内容)
...
API
If you are a developer, you can use an event called when a player writes something to the chat.
Look [`me.vetustus.server.simplechat.api.event.PlayerChatCallback`](src/main/java/me/vetustus/server/simplechat/api/event/PlayerChatCallback.java).
To control the behavior, use the [ChatMessage](src/main/java/me/vetustus/server/simplechat/api/event/PlayerChatCallback.java#L47) subclass, which can be used to cancel sending a message or change it.
_Example:_
java
/**
* Prohibits players from writing messages by canceling an event.
*/
PlayerChatCallback.EVENT.register((player, message) -> {
PlayerChatCallback.ChatMessage chatMessage = new PlayerChatCallback.ChatMessage(player, message);
chatMessage.setCancelled(true);
return chatMessage;
});
License
The MIT license is used.
截图:
来自Modrinth所有游戏版本1.20.11.201.19.41.19.31.19.21.18.21.19所有类型fabric1.9.3simplechat-1.9.3.jar下载1.9.3#Release- Fixed FTBTeams integration- Added new option \"no_players_nearby_message\"- Updated dependency versions展开版本: 1.9.3支持游戏: 1.20.1类型:FabricRelease下载次数: 1,2761.9.1simplechat-1.9.1.jar下载1.9.1#Release- Added support [PlacehoderAPI](https://placeholders.pb4.eu/user/general/)- Added support color tags- Update mod icon展开版本: 1.9.1支持游戏: 1.20.1类型:FabricRelease下载次数: 2101.9.0simplechat-1.9.0.jar下载1.9.0#Release- Added support [PlacehoderAPI](https://placeholders.pb4.eu/user/general/)- Added support color tags- Update mod icon展开版本: 1.9.0支持游戏: 1.20类型:FabricRelease下载次数: 1031.8.2simplechat-1.8.2.jar下载1.8.2#Release- Added support [PlacehoderAPI](https://placeholders.pb4.eu/user/general/)- Added support color tags- Update mod icon展开版本: 1.8.2支持游戏: 1.19.4类型:FabricRelease下载次数: 871.8.1simplechat-1.8.1.jar下载1.8.1#BetaNo changelog was specified.展开版本: 1.8.1支持游戏: 1.19.4类型:FabricBeta下载次数: 1061.7.1simplechat-1.7.1.jar下载1.7.1#Beta- Fix file- Fix local chat range- Fix local chat dimension展开版本: 1.7.1支持游戏: 1.19.3类型:FabricBeta下载次数: 761.6.1simplechat-1.6.1.jar下载1.6.1#Beta- Fix file- Fix local chat range- Fix local chat dimension展开版本: 1.6.1支持游戏: 1.19.2类型:FabricBeta下载次数: 1841.4.6simplechat-1.4.6.jar下载1.4.6#Release- Fix file- Fix local chat range- Fix local chat dimension展开版本: 1.4.6支持游戏: 1.18.2类型:FabricRelease下载次数: 1121.5.1simplechat-1.5.1.jar下载1.5.1#Release- Fix file- Fix local chat range- Fix local chat dimension展开版本: 1.5.1支持游戏: 1.19类型:FabricRelease下载次数: 78全部版本
markdown_parsed
文章类型:收录
layui.use([\'form\'], function(){
var form = layui.form;
});
SimpleChat |
楼主
2025-8-10 19:17:26
回复(0)
收起回复
|