Warning: file_put_contents(/www/wwwroot/nmbt.106988770/cache/modrinth_versions_2KNt6S40.json): Failed to open stream: Permission denied in /www/wwwroot/nmbt.106988770/resource_detail.php on line 53
[ABANDONED] SimpleChat - Chat mod for Fabric servers - 墨喵 Minecraft 资源
[ABANDONED] SimpleChat - Chat mod for Fabric servers 图标

[ABANDONED] SimpleChat - Chat mod for Fabric servers

作者:rebot | 分类:模组

价格:0 墨喵币 下载量:0 点赞:0 版本 1.3.0
本资源为搬运资源,原资源地址: https://modrinth.com/mod/simplechat
资源信息

Minecraft 版本: 1.18.2

平台: fabric

标签: library social utility

资源介绍

SimpleChat

Temporary stop of support

A simple chat mod for your server.

❗The current supported version of the mod is: https://modrinth.com/mod/simplechatfork❗

Works even in a single player game.

issues license

simplechat

Requires the Fabric API!

❗Version 1.17 requires Java 16 to work❗

Features

  • Global and local chat (you can turn it off)
  • Color chat (you can turn it off)
  • Reloading the configuration with the command
  • For developers: Player chat event

Imgur

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_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
chat_range Specifies the distance after which local chat messages will not be visible (if global chat is enabled). int
{
  "enable_chat_mod": true,
  "enable_global_chat": false,
  "enable_chat_colors": false,
  "local_chat_format": "%player% > &7%message%",
  "global_chat_format": "&8[&bG&8] &r%player% > &e%message%",
  "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.

You can reload the configuration without restarting the server or the game using the /simplechat command (requires permission level 1 or more).

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.
To control the behavior, use the ChatMessage subclass, which can be used to cancel sending a message or change it.

Example:

/**
 * 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.

下载与版本
评论(0)
请 登录 后发表评论。

暂无评论,抢个沙发吧~

举报此资源

请登录后举报

赞助作者

请 登录 后赞助作者。

🔥 相关推荐
Instant Fishing

价格:0 墨喵币
下载量:0

查看详情
Heartbreaker's Scourge (unanimated)

价格:0 墨喵币
下载量:0

查看详情
Gay Men Slime

价格:0 墨喵币
下载量:0

查看详情
Trade Everything

价格:0 墨喵币
下载量:0

查看详情