Skip to content

Commit

Permalink
更新到2.2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Xujiayao committed Jul 4, 2023
1 parent 21745ff commit ce5df67
Show file tree
Hide file tree
Showing 6 changed files with 123 additions and 46 deletions.
6 changes: 3 additions & 3 deletions .github/ISSUE_TEMPLATE/bug.yml
Expand Up @@ -31,7 +31,7 @@ body:
label: Minecraft Version
description: |
The version of Minecraft you are using?
placeholder: "Example: 1.20"
placeholder: "Example: 1.20.1"
validations:
required: true
- type: input
Expand All @@ -40,7 +40,7 @@ body:
label: MCDiscordChat Version
description: |
The version of MCDiscordChat you are using?
placeholder: "Example: 2.1.4"
placeholder: "Example: 2.2.0"
validations:
required: true
- type: textarea
Expand Down Expand Up @@ -72,6 +72,6 @@ body:
attributes:
label: Config
description: |
Please provide your MCDiscordChat config file (mcdiscordchat.json) here, remember to remove the botToken and webhookURL.
Please provide your MCDiscordChat config file (mcdiscordchat.json) here, remember to remove the botToken.
validations:
required: true
79 changes: 68 additions & 11 deletions CHANGELOG.md
@@ -1,33 +1,90 @@
# Changelog 更新日志

## MCDiscordChat 1.20-2.1.4 for Minecraft 1.20.x - 2023/6/8
## MCDiscordChat 2.2.0 for Minecraft 1.14+ - 2023/7/4

Please use this release if you are using Minecraft 1.20.x.
This version requires additional permission from the Discord bot, "Manage Webhooks", compared to the previous versions. Please replace the `APP_ID` of the second link below with your Application ID (get it by accessing the first link), and access it to authorize the new permission. If you do not trust the link below, you may create one by referring to the MCDC docs.

Otherwise, use the general 2.1.4 release for older Minecraft versions, including 1.19.2 and 1.19.3.
Regarding changes in the config file, this version dynamically creates MCDC Webhook and no longer requires manual creation when configuring MCDC, simplifying the steps of configuring MCDC and changing channels. Users not using Webhook may turn it off by setting the `useWebhook` option in the config file to `false`.

如果您使用的是 Minecraft 1.20.x,请使用此版本。
In addition, users may customize the range of allowed in-game mentions. Clearing the `allowed_mentions` list disallows all in-game mentions.

否则,请使用适用于旧版 Minecraft 的通用 2.1.4 版本,包括 1.19.2 和 1.19.3。
https://discord.com/developers/applications

https://discord.com/api/oauth2/authorize?client_id=APP_ID&permissions=537054224&scope=bot%20applications.commands

与旧版本相比,此版本需要 Discord 机器人「管理 Webhooks」的额外权限。请将下面第二个链接中的 `APP_ID` 替换为你的应用 ID(可通过访问第一个链接获取),并访问该链接以授权新权限。如果你不信任下面的链接,你也可以参考 MCDC 文档自行创建。

关于配置文件的变化,此版本动态创建 MCDC Webhook,配置 MCDC 时不再需要手动创建,简化了配置 MCDC 和更改频道的步骤。不使用 Webhook 的用户可将配置文件中的 `useWebhook` 选项设为 `false` 以禁用 Webhook。

此外,用户可以自定义允许游戏内提及的范围。清空 `allowed_mentions` 列表即为禁止所有游戏内提及。

## New Features 新特性

- Compatible with version 1.20.x
兼容 1.20.x 版本
- Customizable scope of allowed mentions in-game (#131)
可自定义允许游戏内提及的范围

- Add %nextUpdateTime% placeholder for channel topics (#134)
为频道主题添加 %nextUpdateTime% 占位符

- Multilingual support for task/challenge/goal messages (#133)
进度 / 挑战 / 目标消息提供多语言支持

- Support displaying descriptions for task/challenge/goal messages (#133)
支持显示进度 / 挑战 / 目标的描述

- Support adding players to the server whitelist in Discord (#130)
支持在 Discord 将玩家添加至服务器白名单

- Dynamic-created MCDC Webhook (#152)
动态创建 MCDC Webhook

- Polish translation (#154)
波兰语翻译

- Compatible with the new Discord username system (#158)
兼容新的 Discord 用户名系统

- Cantonese translation (#159)
粤语翻译

- Norwegian Bokmål translation (#161)
书面挪威语翻译

## Changes 更改

N/A
- Improve console log formatting (#140)
改良控制台日志格式

- Fix exception when Discord user nickname contains double quotes (#145)
修复 Discord 用户昵称包含双引号时报错

- MSPT monitoring delays msptCheckInterval milliseconds start (#134)
MSPT 监测延迟 msptCheckInterval 毫秒启动

- Fix exception caused by console log message being too long (#149)
修复控制台日志消息过长导致报错

- Fix incorrect text colour when customizing in-game messages (#156)
修复自定义游戏内消息时文本颜色错误

- Newlines in Discord messages appear as new messages in-game (#155)
Discord 消息中的新行在游戏内显示为新消息

- Optimize the effect of the discordNewlineLimit option
优化 discordNewlineLimit 选项的效果

## Removed 移除

- No longer compatible with versions 1.19.2 and 1.19.3
不再兼容 1.19.2 和 1.19.3 版本
N/A

## Contributors 贡献者

- @Xujiayao
- @BlissfulAlloy79
- @Bocz3k
- @Kire2oo2
- @LofiTurtle

## Detailed Information 详细信息

https://github.com/Xujiayao/MCDiscordChat/compare/2.1.4...1.20-2.1.4
https://github.com/Xujiayao/MCDiscordChat/compare/1.20-2.1.4...2.2.0
40 changes: 25 additions & 15 deletions README.md
Expand Up @@ -50,7 +50,7 @@ If you are interested in contributing to MCDC, you can submit a pull request on

For code contributions, the build file is located in the `/wrapper/build/libs/` folder.

For translation contributions, language files are located in the `/wrapper/src/main/resources/lang/` folder. Copy `en_us.json` and rename the new one to your language code to get started. Please provide translations for the entire file for all keys except those starting with the `death` prefix. The death messages are official translations for Minecraft, which may sync from the official translations at any time.
For translation contributions, language files are located in the `/wrapper/src/main/resources/lang/` folder. Copy `en_us.json` and rename the new one to your language code to get started. Please provide translations for the entire file for all keys except those starting with the `advancements` and `death` prefixes. Those messages are official translations of Minecraft, which may sync from the official translations at any time.

## Features

Expand All @@ -61,12 +61,14 @@ For translation contributions, language files are located in the `/wrapper/src/m
- Support displaying server status using Discord channel topic feature
- Support displaying server player count in bot activity status
- Support Discord Webhook feature
- Dynamic-created MCDC Webhook
- Customizable Webhook Avatar API
- Use the bot itself to send chat messages when Webhook URL is not filled
- Use the bot itself to send chat messages when Webhook is disabled
- Support in-game Markdown parsing
- Support highlighting and using default Unicode and server custom emoji in-game
- Support highlighting stickers in-game
- Support highlighting and mentions (@) in-game
- Customizable scope of allowed mentions (@) in-game
- Support disabling mentions (@) in-game
- Support highlighting and opening hyperlinks and GIFs in-game
- Support disabling all parsing
Expand All @@ -82,37 +84,42 @@ For translation contributions, language files are located in the `/wrapper/src/m
- Notify in-game players when someone executes an MCDC command
- /console command supports Minecraft command auto-completion
- Normal Commands
- /info | Query server running status
- /help | Get a list of available commands
- /update | Check for update
- /info | Query server running status
- /stats \<type\> \<name\> | Query the scoreboard of a statistic
- /update | Check for update
- /whitelist \<player\> | Add a player to the server whitelist
- Admin Commands
- /reload | Reload MCDiscordChat config file (admin only)
- /console \<command\> | Execute a command in the server console (admin only)
- /log \<file\> | Get the specified server log (admin only)
- /reload | Reload MCDiscordChat config file (admin only)
- /stop | Stop the server (admin only)
- Minecraft Commands available
- Admin-only commands require a level 4 operator at minimum
- Normal Commands
- /mcdc info | Query server running status
- /mcdc help | Get a list of available commands
- /mcdc update | Check for update
- /mcdc info | Query server running status
- /mcdc stats \<type\> \<name\> | Query the scoreboard of a statistic
- /mcdc update | Check for update
- /mcdc whitelist \<player\> | Add a player to the server whitelist
- Admin Commands
- /mcdc reload | Reload MCDiscordChat config file (admin only)
- Fully customizable message format
- Sending specific server messages to Discord can be disabled
- In-game
- Chat messages from Discord
- Response messages from Discord
- Messages from other servers
- Messages from other MCDC servers
- Discord
- Server started
- Server stopped
- Player joined server
- Player left server
- Player reached a progress / achieved a goal / completed a challenge
- Multilingual support
- Support displaying descriptions for task/challenge/goal messages
- Player died
- Multilingual support
- Server MSPT is higher than a certain value
- Use admin list to configure user permissions to use special commands
- Support Hot Reloading of the config file
Expand All @@ -123,13 +130,16 @@ For translation contributions, language files are located in the `/wrapper/src/m

Languages currently available:

| Code | Language |
|---------|-------------------|
| `en_us` | English (US) |
| `zh_cn` | 中文(简体) |
| `ru_ru` | Русский (Россия) |
| `ko_kr` | 한국어(대한민국) |
| `fr_fr` | Français (France) |
| Code | Language |
|---------|----------------------|
| `en_us` | English (US) |
| `fr_fr` | Français (France) |
| `ko_kr` | 한국어(대한민국) |
| `no_no` | Norsk Bokmål (Norge) |
| `pl_pl` | Polski (Polska) |
| `ru_ru` | Русский (Россия) |
| `zh_cn` | 简体中文(中国大陆) |
| `zh_hk` | 繁體中文(香港特別行政區) |

## Contributors

Expand Down
40 changes: 25 additions & 15 deletions README_CN.md
Expand Up @@ -50,7 +50,7 @@ MCDiscordChat (MCDC), a practical and powerful Fabric and Quilt Minecraft <> Dis

对于代码贡献,构建文件位于 `/wrapper/build/libs/` 文件夹中。

对于翻译贡献,语言文件位于 `/wrapper/src/main/resources/lang/` 文件夹中。复制 `en_us.json` 并将新的文件重命名为您的语言代码以开始翻译。请为整个文件中除了以 `death` 前缀开头的键之外其它所有键提供翻译。死亡消息是 Minecraft 的官方翻译,可随时从官方翻译同步。
对于翻译贡献,语言文件位于 `/wrapper/src/main/resources/lang/` 文件夹中。复制 `en_us.json` 并将新的文件重命名为你的语言代码以开始翻译。请为整个文件中除了以 `advancements``death` 前缀开头的键之外其它所有键提供翻译。那些是 Minecraft 的官方翻译,可随时从官方翻译同步。

## 功能特色

Expand All @@ -61,12 +61,14 @@ MCDiscordChat (MCDC), a practical and powerful Fabric and Quilt Minecraft <> Dis
- 支持使用 Discord 频道主题功能显示服务器状态
- 支持使用机器人活动状态显示服务器玩家数
- 支持 Discord Webhook 功能
- 动态创建 MCDC Webhook
- 可自定义 Webhook 玩家头像 API
- 未填写 Webhook URL 时使用机器人自身发送聊天消息
- 可禁用 Webhook,使用机器人自身发送聊天消息
- 支持游戏内 Markdown 解析
- 支持游戏内高亮和使用默认 Unicode 和服务器自定义表情符号
- 支持游戏内高亮贴纸
- 支持游戏内高亮和提及 (@)
- 可自定义允许游戏内提及 (@) 的范围
- 支持禁用游戏内提及 (@)
- 支持游戏内高亮和打开超链接和 GIF
- 支持禁用所有解析
Expand All @@ -82,37 +84,42 @@ MCDiscordChat (MCDC), a practical and powerful Fabric and Quilt Minecraft <> Dis
- 当有人执行 MCDC 命令时通知游戏内玩家
- /console 命令支持 Minecraft 命令自动补全
- 普通命令
- /info | 查询服务器运行状态
- /help | 获取可用命令列表
- /update | 检查更新
- /info | 查询服务器运行状态
- /stats \<type\> \<name\> | 查询该统计信息的排行榜
- /update | 检查更新
- /whitelist \<player\> | 添加玩家至服务器白名单
- 管理员命令
- /reload | 重新加载 MCDiscordChat 配置文件(仅限管理员)
- /console \<command\> | 在服务器控制台中执行命令(仅限管理员)
- /log \<file\> | 获取指定的服务器日志(仅限管理员)
- /reload | 重新加载 MCDiscordChat 配置文件(仅限管理员)
- /stop | 停止服务器(仅限管理员)
- 可使用 Minecraft 命令
- 仅限管理员的命令仅对 4 级管理员可用
- 普通命令
- /mcdc info | 查询服务器运行状态
- /mcdc help | 获取可用命令列表
- /mcdc update | 检查更新
- /mcdc info | 查询服务器运行状态
- /mcdc stats \<type\> \<name\> | 查询该统计信息的排行榜
- /mcdc update | 检查更新
- /mcdc whitelist \<player\> | 添加玩家至服务器白名单
- 管理员命令
- /mcdc reload | 重新加载 MCDiscordChat 配置文件(仅限管理员)
- 可完全自定义所有消息格式
- 可禁用向 Discord 频道发送特定服务器消息
- 游戏内
- 来自 Discord 的聊天消息
- 来自 Discord 的回复消息
- 来自其它服务器的消息
- 来自其它 MCDC 服务器的消息
- Discord
- 在服务器启动时
- 在服务器关闭时
- 在玩家加入服务器时
- 在玩家离开服务器时
- 在玩家达成进度 / 达成目标 / 完成挑战时
- 多语言支持
- 支持显示进度 / 挑战 / 目标的描述
- 在玩家死亡时
- 多语言支持
- 在服务器 MSPT 高于预警值时
- 可使用管理员名单配置用户使用特殊命令的权限
- 支持配置文件热重载
Expand All @@ -123,13 +130,16 @@ MCDiscordChat (MCDC), a practical and powerful Fabric and Quilt Minecraft <> Dis

目前可用的语言:

| 代码 | 语言 |
|---------|-------------------|
| `en_us` | English (US) |
| `zh_cn` | 中文(简体) |
| `ru_ru` | Русский (Россия) |
| `ko_kr` | 한국어(대한민국) |
| `fr_fr` | Français (France) |
| 代码 | 语言 |
|---------|----------------------|
| `en_us` | English (US) |
| `fr_fr` | Français (France) |
| `ko_kr` | 한국어(대한민국) |
| `no_no` | Norsk Bokmål (Norge) |
| `pl_pl` | Polski (Polska) |
| `ru_ru` | Русский (Россия) |
| `zh_cn` | 简体中文(中国大陆) |
| `zh_hk` | 繁體中文(香港特別行政區) |

## 贡献者

Expand Down
2 changes: 1 addition & 1 deletion gradle.properties
Expand Up @@ -2,7 +2,7 @@
org.gradle.jvmargs=-Xmx8G

# Mod Properties
mod_version=2.1.4
mod_version=2.2.0
maven_group=top.xujiayao
archives_base_name=MCDiscordChat

Expand Down
2 changes: 1 addition & 1 deletion update/version.json
@@ -1 +1 @@
{"version":"2.1.4","changelog":"<https://github.com/Xujiayao/MCDiscordChat/releases/latest>\n\n> This version still supports versions 1.19.2 and 1.19.3, which have been integrated into the same file."}
{"version":"2.2.0","changelog":"<https://github.com/Xujiayao/MCDiscordChat/releases/latest>\n\n> This version requires additional permission from the Discord bot, \"Manage Webhooks\", compared to the previous versions. Please replace the `APP_ID` of the second link below with your Application ID (get it by accessing the first link), and access it to authorize the new permission. If you do not trust the link below, you may create one by referring to the MCDC docs.\n> \n> Regarding changes in the config file, this version dynamically creates MCDC Webhook and no longer requires manual creation when configuring MCDC, simplifying the steps of configuring MCDC and changing channels. Users not using Webhook may turn it off by setting the `useWebhook` option in the config file to `false`.\n> \n> In addition, users may customize the range of allowed in-game mentions. Clearing the `allowed_mentions` list disallows all in-game mentions.\n> \n> <https://discord.com/developers/applications>\n> \n> <https://discord.com/api/oauth2/authorize?client_id=APP_ID&permissions=537054224&scope=bot%20applications.commands>"}

0 comments on commit ce5df67

Please sign in to comment.