Skip to content

[Bug] const device = player.getDevice();const ip = device.ip; 会导致控制台无法输出日志 #350

@DJRsiri

Description

@DJRsiri

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

  1. 新建一个.js文件并添加注册插件相关信息
  2. 输入上面描述的代码
  3. 启动服务器,使任意一个玩家加入服务器
  4. 控制台没有再输出任何新内容

Expected behavior

修复此bug

Screenshots

Image

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions