Fallen_Breath

Results 168 comments of Fallen_Breath

与 #161 重复

同 https://github.com/Fallen-Breath/MCDReforged/issues/161#issuecomment-1093099725 正确的编码配置取决于你的具体环境,没有人可以在不了解具体环境的前提下给出答案 以及不要用“能试过的都试了”这一种含糊不清的表述,这对本 issue 的解决提供不了任何帮助

这一类 encoding 编码配置问题,有如下两种解决方案 - 根据系统环境,在 MCDR 配置文件中填写正确的 encoding 配置。至于何为正确,取决于具体环境。这里无法做出答案 - 使用如 utf8 这一种常见的编码作为 encoding,并确保服务端可以正确地从 stdin 接受 utf8 输入。后者的具体操作取决于具体服务端表现 对于 Minecraft **原版** 服务端而言,原版服务端使用 utf8 读取 stdin,因此 encoding 设置为 utf8 即可

因无任何进展,且无法复现问题,而关闭此 issue

补一个无法复现此问题的截图。建议自行检查环境 ![Image](https://github.com/user-attachments/assets/6b61f085-5b90-49d5-905b-69375d458693)

A fix that seems to be working for this, just for a reference: https://github.com/Fallen-Breath/monument/commit/3a1d19ca187e77ec70b562d32a9ed138402725d2 If the above fix looks good to you, I can also submit a PR

Seems like this issue does not exist anymore in the most recent commit. Maybe the shadow plugin has fixed it

在 1.19.1-rc1 中,Minecraft 做出了[如下的更改](https://www.minecraft.net/en-us/article/minecraft-1-19-1-release-candidate-1): > - The `run_command` click event for text components no longer supports sending chat messages directly > - Only commands are supported, so a command such...

对于上述妥协方案的第二点,这里有一个 mod 可以实现所需的功能:https://github.com/Fallen-Breath/LetMeClickAndSend 2024/9/24 更新:https://github.com/Fallen-Breath/LetMeClickAndSendForServer 这个 mod 提供了另一种实现思路,在服务端将非指令的 `run_command` 的内容替换为了一个自定义指令,以“绕过”客户端的 `run_command` 限制,无需修改客户端

> 第一点,是否可以造一个 MCDR 插件把 `run_command` 改为 `suggest_command`? 你当然可以用插件做任何事情,包括使用 monkey patch 等手段修改 MCDR 的逻辑,只不过这种改变 MCDR 行为的插件容易带来很多副作用,需考虑清楚 对于 MCDR 本身而言,MCDR 是不会修改所提供的 `run_command` API 的,最多仅会在如文档等处添加对 1.19 的相关提示信息