Skip to content

ServerChatEvent中的event.setComponent并未按照原有代码执行(主分支) #46

@Swallows-annzi

Description

@Swallows-annzi

在ServerChatEvent中的event.setComponent设置中使输入的ITextComponent替换原先类中的component但并未使用新的ITextComponent。也就是修改了但并没有使用修改后的数据
经过测试.setComponent()中确实修改了component但在服务器(ServerChatEvent为纯服务器事件)中并未按照新的ITextComponent进行信息广播
经过测试event.setCanceled(true)也并不起作用
那么我该如何通过该Event修改component至新的ITextComponent并且触发广播

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    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