Skip to content

[yggdrasil-api] 查询角色属性时返回的角色名大小写和实际角色名不符 #232

@tnqzh123

Description

@tnqzh123

如题,在通过角色名查询角色属性时,Yggdrasil API 插件返回的角色名的大小写会根据请求中的角色名来,而非根据实际的角色名来:

$profiles[] = [
'id' => $profile->uuid,
'name' => $name,
];

return [
'id' => $profile->uuid,
'name' => $username,
];

该行为与 Mojang 官方实现不符。

并且,在 UUID 算法为 v3 时,正常情况下,根据角色名的大小写不同,生成的 UUID 也不同,该行为会导致验证服务器返回的 UUID 与正确计算结果不符。

Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions