Describe the bug
mc.listen("onPreJoin", (player) => {
const name = player.realName;
const device = player.getDevice();
const ip = device.ip;
const xuid = player.xuid;
log(玩家: ${name} | IP: ${ip} | XUID: ${xuid});
});
会导致在输出log内容后无法再输出任何新内容,即使卸载插件也不能恢复。(游戏世界不受影响)
To Reproduce
- 新建一个.js文件并添加注册插件相关信息
- 输入上面描述的代码
- 启动服务器,使任意一个玩家加入服务器
- 控制台没有再输出任何新内容
Expected behavior
修复此bug
Screenshots
Platform
Windows 10 Pro For Workstations x64
BDS Version
1.21.132.01
LeviLamina Version
1.9.5
LegacyScriptEngine Version
0.17.2
Additional context
No response