Skip to content

[Bug] 计分板API #378

Description

@wuw111

Describe the bug

v0.19.2版本中,计分板API可能存在以下BUG

Scoretest.js
obj.getScore(Player) 返回 undefined
mc.getPlayerScore(UUID, name) 返回 0
相同用法下,这两个接口在0.18.2版本中表现正常

To Reproduce

1.安装LeviLamina-26.20.4.和LSE 0.19.2(LegacyScriptEngine-server-quickjs)
2.安装这个测试插件,玩家进入游戏,输入指令/scoretest [计分板名称],观察测试结果
3.可见obj.getScore和mc.getPlayerScore(测试项目2和4)返回异常值
4.该问题在LSE 0.18.2版本不存在,相同插件安装在0.18.2版本可以正常反馈玩家计分板数值

Scoretest.zip

Image

Expected behavior

希望能够正常获取玩家计分板数值

Image

Screenshots

Image Image

Platform

Windows10&Windows11

BDS Version

1.26.20.5

LeviLamina Version

26.20.4

LegacyScriptEngine Version

0.19.2

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Fields

    No fields configured for Bug.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions