手冊:ChatReceiveHook

出自Minecraft基岩版开发Wiki

語法[編輯]

function chatReceiveHook(str, sender){};

參數[編輯]

參數一

str: 接收到的內容

參數二

sender: 發訊息的人

效果[編輯]

接到聊天資訊時觸發

可以使用preventDefault()

Template:ModPE