Skip to content

Commit

Permalink
更新到2.2.1
Browse files Browse the repository at this point in the history
  • Loading branch information
Xujiayao committed Sep 14, 2023
1 parent 5a9344f commit bbb7d4a
Show file tree
Hide file tree
Showing 6 changed files with 34 additions and 67 deletions.
1 change: 1 addition & 0 deletions .github/ISSUE_TEMPLATE/bug.yml
Expand Up @@ -61,6 +61,7 @@ body:
multiple: false
options:
- "Latest Build"
- "2.2.1"
- "2.2.0"
- "1.20-2.1.4"
- "2.1.4"
Expand Down
84 changes: 23 additions & 61 deletions CHANGELOG.md
@@ -1,77 +1,42 @@
# Changelog 更新日志

## MCDiscordChat 2.2.0 for Minecraft 1.14+ - 2023/7/4
## MC-Discord-Chat 2.2.1 for Minecraft 1.14+ - 2023/9/14

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.
MCDiscordChat has been renamed to MC-Discord-Chat.

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`.
The comprehensive list of supported Minecraft versions for each MCDC version is now available on Modrinth, CurseForge, and the MCDC Docs.

In addition, users may customize the range of allowed in-game mentions. Clearing the `allowed_mentions` list disallows all in-game mentions.
MCDiscordChat 已更名为 MC-Discord-Chat。

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` 列表即为禁止所有游戏内提及。
从现在开始,你可以在 Modrinth、CurseForge 和 MCDC 文档中找到每个 MCDC 版本所支持的 Minecraft 版本的全面列表。

## New Features 新特性

- 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)
支持显示进度 / 挑战 / 目标的描述
- Customizable messages when Webhook is disabled (#163)
可自定义禁用 Webhook 时发送的消息

- Support adding players to the server whitelist in Discord (#130)
支持在 Discord 将玩家添加至服务器白名单
- Dynamically generate MCDC help messages (#167)
动态生成 MCDC 帮助消息

- 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)
书面挪威语翻译
- Adjustable permissions for the MCDC /whitelist command (#167)
可调整 MCDC /whitelist 命令的使用权限

## Changes 更改

- 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 Quilt compatibility issue (#164)
修复 Quilt 兼容性问题

- Fix exception caused by console log message being too long (#149)
修复控制台日志消息过长导致报错
- Fix exception when players register before the server is fully started (#168)
修复玩家在服务器未完全启动前注册时报错

- Fix incorrect text colour when customizing in-game messages (#156)
修复自定义游戏内消息时文本颜色错误
- Fix chat messages not being sent when using multi-server mode
修复使用多服务器模式时没有发送聊天消息

- Newlines in Discord messages appear as new messages in-game (#155)
Discord 消息中的新行在游戏内显示为新消息
- Send MSPT warnings to main channel when console log channel is enabled (#171)
启用控制台日志频道时将 MSPT 警告发送到主频道

- Optimize the effect of the discordNewlineLimit option
优化 discordNewlineLimit 选项的效果
- Fix console log messages may be too long (#174)
修复控制台日志消息有机会过长

## Removed 移除

Expand All @@ -80,11 +45,8 @@ N/A
## Contributors 贡献者

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

## Detailed Information 详细信息

https://github.com/Xujiayao/MCDiscordChat/compare/1.20-2.1.4...2.2.0
https://github.com/Xujiayao/MC-Discord-Chat/compare/2.2.0...2.2.1
6 changes: 4 additions & 2 deletions README.md
Expand Up @@ -89,22 +89,24 @@ For translation contributions, language files are located in the `/wrapper/src/m
- /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
- /console \<command\> | Execute a command in the server console (admin only)
- /log \<file\> | Get the specified server log (admin only)
- /reload | Reload MC-Discord-Chat config file (admin only)
- /stop | Stop the server (admin only)
- Commands with Adjustable Permissions
- /whitelist \<player\> | Add a player to the server whitelist
- Minecraft Commands available
- Admin-only commands require a level 4 operator at minimum
- Normal Commands
- /mcdc help | Get a list of available commands
- /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 MC-Discord-Chat config file (admin only)
- Commands with Adjustable Permissions
- /mcdc whitelist \<player\> | Add a player to the server whitelist
- Fully customizable message format
- Sending specific server messages to Discord can be disabled
- In-game
Expand Down
6 changes: 4 additions & 2 deletions README_CN.md
Expand Up @@ -89,22 +89,24 @@ MC-Discord-Chat (MCDC), formerly known as MCDiscordChat, a practical and powerfu
- /info | 查询服务器运行状态
- /stats \<type\> \<name\> | 查询该统计信息的排行榜
- /update | 检查更新
- /whitelist \<player\> | 添加玩家至服务器白名单
- 管理员命令
- /console \<command\> | 在服务器控制台中执行命令(仅限管理员)
- /log \<file\> | 获取指定的服务器日志(仅限管理员)
- /reload | 重新加载 MC-Discord-Chat 配置文件(仅限管理员)
- /stop | 停止服务器(仅限管理员)
- 可调整权限的命令
- /whitelist \<player\> | 添加玩家至服务器白名单
- 可使用 Minecraft 命令
- 仅限管理员的命令仅对 4 级管理员可用
- 普通命令
- /mcdc help | 获取可用命令列表
- /mcdc info | 查询服务器运行状态
- /mcdc stats \<type\> \<name\> | 查询该统计信息的排行榜
- /mcdc update | 检查更新
- /mcdc whitelist \<player\> | 添加玩家至服务器白名单
- 管理员命令
- /mcdc reload | 重新加载 MC-Discord-Chat 配置文件(仅限管理员)
- 可调整权限的命令
- /mcdc whitelist \<player\> | 添加玩家至服务器白名单
- 可完全自定义所有消息格式
- 可禁用向 Discord 频道发送特定服务器消息
- 游戏内
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.2.0
mod_version=2.2.1
maven_group=top.xujiayao
archives_base_name=MC-Discord-Chat

Expand Down
2 changes: 1 addition & 1 deletion update/version.json
@@ -1 +1 @@
{"version":"2.2.0","changelog":"<https://github.com/Xujiayao/MC-Discord-Chat/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>"}
{"version":"2.2.1","changelog":"<https://github.com/Xujiayao/MC-Discord-Chat/releases/latest>\n\n> MCDiscordChat has been renamed to MC-Discord-Chat.\n> \n> The comprehensive list of supported Minecraft versions for each MCDC version is now available on Modrinth, CurseForge, and the MCDC Docs."}

0 comments on commit bbb7d4a

Please sign in to comment.