Add translation (#1)

* Added 繁中 and RU redeirect on all ReadMe

* Added zh-TW translation

* Added ru-RU translation
This commit is contained in:
360NENZ 2023-01-13 22:51:31 +08:00 committed by GitHub
parent 7c3f48589d
commit d060b1804f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 152 additions and 2 deletions

View File

@ -6,7 +6,7 @@
[![GitHub release](https://img.shields.io/github/v/release/jie65535/gc-openchat-plugin)](https://github.com/jie65535/gc-openchat-plugin/releases/latest) [![GitHub release](https://img.shields.io/github/v/release/jie65535/gc-openchat-plugin)](https://github.com/jie65535/gc-openchat-plugin/releases/latest)
[![Build](https://github.com/jie65535/gc-openchat-plugin/actions/workflows/build.yml/badge.svg)](https://github.com/jie65535/gc-openchat-plugin/actions/workflows/build.yml) [![Build](https://github.com/jie65535/gc-openchat-plugin/actions/workflows/build.yml/badge.svg)](https://github.com/jie65535/gc-openchat-plugin/actions/workflows/build.yml)
[中文](README.md) | English [简中](README.md) | [繁中](README-zh-TW.md) | EN | [RU](README-ru-RU.md)
Chat with players in the server Chat with players in the server

75
README-ru-RU.md Normal file
View File

@ -0,0 +1,75 @@
# gc-openchat-plugin
[![GitHub license](https://img.shields.io/github/license/jie65535/gc-openchat-plugin)](https://github.com/jie65535/gc-openchat-plugin/blob/main/LICENSE)
[![GitHub stars](https://img.shields.io/github/stars/jie65535/gc-openchat-plugin)](https://github.com/jie65535/gc-openchat-plugin/stargazers)
[![Github All Releases](https://img.shields.io/github/downloads/jie65535/gc-openchat-plugin/total.svg)](https://github.com/jie65535/gc-openchat-plugin/releases)
[![GitHub release](https://img.shields.io/github/v/release/jie65535/gc-openchat-plugin)](https://github.com/jie65535/gc-openchat-plugin/releases/latest)
[![Build](https://github.com/jie65535/gc-openchat-plugin/actions/workflows/build.yml/badge.svg)](https://github.com/jie65535/gc-openchat-plugin/actions/workflows/build.yml)
[简中](README.md) | [繁中](README-zh-TW.md) | [EN](README-en-US.md) | RU
Разрешить игрокам общаться внутри сервера
![Пример чата](doc/Chat.png)
Разговор с учетной записью сервера в игре эквивалентен отправке на мировой канал, и все игроки на сервере могут получить сообщение.
## TODO List
- [x] Чат между игроками
- [x] Команды управления чатом
- [x] Ограничение скорости речи
- [ ] Модерация контента чата
- [ ] API чата _(~~OneBot api~~)_
- [ ] ...
## Установить
1. Загрузите `jar` из [Release](https://github.com/jie65535/gc-openchat-plugin/releases)
2. Поместите его в папку `plugins`
## Порядок
Игроки используют:
- `/chat on` принимать сообщения чата (по умолчанию)
- `/chat off` отключает сообщения чата
Для управления (требуется разрешение `server.chat.others`):
- `/serverchat on` включить серверный чат (по умолчанию)
- `/serverchat off` отключить серверный чат
- `/serverchat ban @uid [время (минуты)]` забанить определенных игроков
- `/serverchat unban @uid` Разблокировать указанного игрока
- `/serverchat limit <количество раз в минуту>` установить ограничение частоты отправки сообщений
- `/serverchat reload` перезагрузить файл конфигурации
`/serverchat` может иметь псевдоним `/sc`
## конфигурация
```json5
{
// переключение чата на сервере
serverChatEnabled: true,
// формат сообщения серверного чата
// {nickName} никнейм игрока
// {uid} это UID игрока
// {message} это содержимое сообщения
serverChatFormat: "<color=#99CC99>{nickName}({uid})</color>: {message}",
// Ограничить количество говорящих сообщений в минуту
messageFreLimitPerMinute: 20,
// Отправлять ли сообщение, когда игрок присоединяется
sendJoinMessage: true,
// Отправляем сообщение, когда игрок присоединяется
joinMessage: "本服已启用聊天,/chat on 开启(默认),/chat off 屏蔽",
// Запрещенное сообщение обратной связи
bannedFeedback: "你已经被禁言!",
// Сообщение обратной связи слишком часто
// {limit} Максимальное время, установленное сервером
msgTooFrequentFeedback: "服务器设置每分钟仅允许发言{limit}次"
}
```

75
README-zh-TW.md Normal file
View File

@ -0,0 +1,75 @@
# gc-openchat-plugin
[![GitHub license](https://img.shields.io/github/license/jie65535/gc-openchat-plugin)](https://github.com/jie65535/gc-openchat-plugin/blob/main/LICENSE)
[![GitHub stars](https://img.shields.io/github/stars/jie65535/gc-openchat-plugin)](https://github.com/jie65535/gc-openchat-plugin/stargazers)
[![Github All Releases](https://img.shields.io/github/downloads/jie65535/gc-openchat-plugin/total.svg)](https://github.com/jie65535/gc-openchat-plugin/releases)
[![GitHub release](https://img.shields.io/github/v/release/jie65535/gc-openchat-plugin)](https://github.com/jie65535/gc-openchat-plugin/releases/latest)
[![Build](https://github.com/jie65535/gc-openchat-plugin/actions/workflows/build.yml/badge.svg)](https://github.com/jie65535/gc-openchat-plugin/actions/workflows/build.yml)
[简中](README.md) | 繁中 | [EN](README-en-US.md) | [RU](README-ru-RU.md)
讓玩家在服務器內聊天
![聊天示例](doc/Chat.png)
在遊戲內與服務器賬號對話,相當於發送到世界頻道,服務器內所有玩家均可收到消息。
## TODO List
- [x] 玩家間聊天
- [x] 聊天管理命令
- [x] 發言頻率限制
- [ ] 聊天內容審查
- [ ] 聊天api _(~~OneBot api~~)_
- [ ] ...
## 安裝
1. 在 [Release](https://github.com/jie65535/gc-openchat-plugin/releases) 下載`jar`
2. 放入 `plugins` 文件夾即可
## 命令
玩家用:
- `/chat on` 接受聊天消息(默認)
- `/chat off` 屏蔽聊天消息
管理用(需要 `server.chat.others` 權限):
- `/serverchat on` 啟用服務器聊天(默認)
- `/serverchat off` 關閉服務器聊天
- `/serverchat ban @uid [時間(分鐘)]` 禁言指定玩家
- `/serverchat unban @uid` 解除指定玩家禁言
- `/serverchat limit <次每分钟>` 設置發消息頻率限制
- `/serverchat reload` 重載配置文件
`/serverchat` 可用别名 `/sc`
## 配置
```json5
{
// 服務器聊天開關
serverChatEnabled: true,
// 服務器聊天消息格式
// {nickName} 為玩家暱稱
// {uid} 為玩家UID
// {message} 為消息內容
serverChatFormat: "<color=#99CC99>{nickName}({uid})</color>: {message}",
// 每分鐘發言消息數限制
messageFreLimitPerMinute: 20,
// 是否在玩家加入時發送消息
sendJoinMessage: true,
// 玩家加入時發送消息
joinMessage: "本服已启用聊天,/chat on 开启(默认),/chat off 屏蔽",
// 被禁言反饋消息
bannedFeedback: "你已经被禁言!",
// 消息太頻繁反饋消息
// {limit} 服務器設置的限制次數
msgTooFrequentFeedback: "服务器设置每分钟仅允许发言{limit}次"
}
```

View File

@ -6,7 +6,7 @@
[![GitHub release](https://img.shields.io/github/v/release/jie65535/gc-openchat-plugin)](https://github.com/jie65535/gc-openchat-plugin/releases/latest) [![GitHub release](https://img.shields.io/github/v/release/jie65535/gc-openchat-plugin)](https://github.com/jie65535/gc-openchat-plugin/releases/latest)
[![Build](https://github.com/jie65535/gc-openchat-plugin/actions/workflows/build.yml/badge.svg)](https://github.com/jie65535/gc-openchat-plugin/actions/workflows/build.yml) [![Build](https://github.com/jie65535/gc-openchat-plugin/actions/workflows/build.yml/badge.svg)](https://github.com/jie65535/gc-openchat-plugin/actions/workflows/build.yml)
中文 | [English](README-en-US.md) 简中 | [繁中](README-zh-TW.md) | [EN](README-en-US.md) | [RU](README-ru-RU.md)
让玩家在服务器内聊天 让玩家在服务器内聊天