Skip to content

[Bug] BDS 26.60 LL26.60.1 LSE0.23 环境下 QuickJS 的 getDevice().avgPing 持续返回 0,疑似升级回归 #408

Open

Description

@Limo-awa

Describe the bug

问题描述:
升级到 BDS 26.60 及对应 LeviLamina 后,多个玩家的延迟显示持续为 0ms。
升级前,相同插件可以正常显示延迟。

已经排除了聊天脚本的 || 0 兜底造成假 0 的可能:
在玩家正常聊天时读取

Image

,
至少一名玩家的原始样本为:

类型:number
原始值:0

该记录没有经过 || 0、Number() 或其他补值处理,附诊断截图。
截图中的 /clcping 只是查看聊天时采集的缓存,不是重新发起网络探测。

To Reproduce

任何lse插件调用player.getDevice().avgPing返回为0,附赠调试插件【插件为ChatGPT 6.1Sol所写,经过AI在服务端项目多次验证】
调试方法:部署插件后,让一个玩家正常发言,随后OP 执行:/clcping或者/clcping "玩家名",然后观察服务端控制台输出调试信息
CloudLandChat.zip

Expected behavior

player.getDevice().avgPing应当返回正常值

Screenshots

No response

Platform

windows 10

BDS Version

1.26.60

LeviLamina Version

26.60.0

LegacyScriptEngine Version

0.23.0

Additional context

No response

Activity

  1. added theissue type on Nov 5, 2026
  2. ShrBox commented on Nov 5, 2026

    @ShrBox
    Member

    因为没适配NetherNet

  3. ShrBox commented on Nov 5, 2026

    @ShrBox
    Member

    好像是NetherNet不保存AveragePing了,试试lastPing?

  4. Limo-awa commented on Nov 5, 2026

    @Limo-awa
    Author

    实测lastping也是这样

  5. ShrBox commented on Nov 5, 2026

    @ShrBox
    Member

    我看看有什么办法能解决吧,我看endstone那边用的lastPing

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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