@minecraft
    正在准备搜索索引...

    类 ChatSendBeforeEvent实验性

    An event that fires as players enter chat messages.

    索引

    属性

    cancel: boolean

    If set to true in a beforeChat event handler, this message is not broadcast out.

    message: string

    Message that is being broadcast.

    sender: Player

    Player that sent the chat message.

    targets?: Player[]

    Optional list of players that will receive this message. If defined, this message is directly targeted to one or more players (i.e., is not broadcast.)