Skip to content

[Bug/漏洞] neoforge tps指令换行符丢失 #184

Description

@wu452148993

Checks / 检查

  • I confirm that I have searched for existing issues / pull requests before reporting to avoid duplicate reporting./我确认在报告之前我已经搜索了现有的问题或者拉取请求,以避免重复报告。
  • I confirm that I followed the Docs and read the Changelog, but this problem still exists./我确认我按照文档配置并阅读了Changelog,但这个问题仍然存在。
  • I confirm that I noted that if I don't follow the instructions, the issue may be closed directly./我确认我已经检查,如果我不按照说明进行操作,该问题可能会被直接关闭。

Java Version / Java版本

21.0.6

Minecraft Version / Minecraft版本

1.21.1

McBot Version / McBot版本

2.3.0

Description / 描述

配置自定义指令 neoforge tps 后,群里的回复丢失了换行符
游戏中:

Image

群里:

Image

经过定位,发现 McBotCommandSource.sendSystemMessage()函数中append()未增加换行符,导致换行符丢失。

Image

修复结果:

Image

To Reproduce / 重现

已定位,不提供了

Log / 日志

已定位,不提供了

Config / 配置

已定位,不提供了

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions