[ABANDONED] SimpleChat - Chat mod for Fabric servers

A small mod for a customizable chat, with the most simple settings

Редакция NLZONE · 2 мин чтения · 0 просмотров
[ABANDONED] SimpleChat - Chat mod for Fabric servers
Скачать [ABANDONED] SimpleChat - Chat mod for Fabric servers1.16.5 – 1.18.2 · с официальной страницы: modrinth.com
Перейти к загрузке

Что это

A small mod for a customizable chat, with the most simple settings

  • Тип: мод
  • Загрузчик: fabric
  • Версии Minecraft: 1.16.5 – 1.18.2
  • Скачиваний на Modrinth: 2 060

Подробно

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

[](https://github.com/cayennemc/SimpleChat/issues)

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

Configuration The configuration is located in /config/simplechat.json.

| Name | Description | Type | |-|-|-| | enablechatmod | Enables (true) or disables (false) chat handling by the mod. | boolean | | enableglobalchat | Enables (true) or disables (false) the global chat. | boolean | | enablechatcolors | Enables (true) or disables (false) the use of color codes in the chat. | boolean | | localchatformat | Defines the appearance of the local chat. | String | | globalchatformat | Defines the appearance of the global chat. | String | | chatrange | Specifies the distance after which local chat messages will not be visible (if global chat is enabled). | int |

json { "enablechatmod": true, "enableglobalchat": false, "enablechatcolors": false, "localchatformat": "%player% > &7%message%", "globalchatformat": "&8[&bG&8] &r%player% > &e%message%", "chatrange": 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: 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; });

Как установить

Скачайте файл на официальной странице ниже и положите его в папку mods (для модов) или plugins (для плагинов) вашего сервера или клиента. Для модов нужен совместимый загрузчик. Версия должна совпадать с версией Minecraft.

Текст подготовлен автоматически из описания на Modrinth и ждёт проверки редакцией.

Редакция NLZONE

Пишем о серверах, модах и играх, в которые играем сами. Нашли ошибку — напишите нам, исправим.

Комментарии 0

Комментарии к этому материалу отключены.

Читайте также