Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[建议] 希望MultiLogin能预留一个与客户端的数据传输通道(例如CustomSkinLoader) #118

Closed
2 of 9 tasks
8MiYile opened this issue Oct 15, 2023 · 7 comments
Closed
2 of 9 tasks

Comments

@8MiYile
Copy link

8MiYile commented Oct 15, 2023

描述功能请求

比如说CustomSkinLoader客户端插件(以下简称CSL插件) 因为服务器使用了MultiLogin但是CSL插件却不能正确的分配用户的皮肤,因为无法获取到用户的登录类型,想知道说会不会为此模组增加一个信道,带ModName+Token的验证方式方便CSL插件与MultiLogin插件的交互

描述你考虑过的备选方案

No response

请确认此建议所影响的内容

  • 文档
  • 安装
  • 可扩展性
  • 安全
  • 用户体验
  • 测试和发布
  • 开发架构
  • 新的扩展
  • 其他
@8MiYile
Copy link
Author

8MiYile commented Oct 15, 2023

请求类型就是 ModID+ModToken+要查询的用户名
返回的样例

type=name,string=microsoft,user=被查询的玩家ID
type=name,string=littleskin,,user=被查询的玩家ID
type=url,skin_url=https://xxxx,cape_url=https:///xxxx,user=被查询的玩家ID

url一般是要直接包含用户名信息的,而不是占位符让客户端替换。。。

安装CSL插件的客户端会在进服务器成功后,发送一个数据包跟服务器尝试交互,如果插件收到了回应,则开始查询,否则按默认方式工作

@8MiYile 8MiYile changed the title [建议] 希望MultiLogin能预留一个与客户端的数据传输通道 [建议] 希望MultiLogin能预留一个与客户端的数据传输通道(例如CustomSkinLoader) Oct 15, 2023
@Becods
Copy link
Collaborator

Becods commented Oct 15, 2023

这是csl的问题
安装了ml且开启了皮肤修复的服务器,不需要csl来获取皮肤

所以你为何不直接调整优先级
亦或者让用户删除csl

  "loadlist": [
    {
      "name": "Your Skin",
      "type": "CustomSkinAPI",
      "root": "https://yourskin.here"
    },
    {
      "name": "Mojang",
      "type": "MojangAPI",
      "apiRoot": "https://api.mojang.com/",
      "sessionRoot": "https://sessionserver.mojang.com/"
    }
  ]

@8MiYile
Copy link
Author

8MiYile commented Oct 16, 2023

是关于皮肤修复设定吗,能否根据他们的登录方式分配对应的皮肤 并所有人可视?

@CaaMoe
Copy link
Owner

CaaMoe commented Oct 18, 2023 via email

@8MiYile
Copy link
Author

8MiYile commented Oct 18, 2023

那通道方面有无呢,就是加一个类似json返回的请求。。

@Silverteal
Copy link

使用MultiLogin并在服务器启用在线模式后,它会直接向服务器内玩家发送玩家用于登录的皮肤,所以不需要使用CSL。CSL会替换客户端的皮肤获取逻辑,反而有可能破坏MultiLogin的工作方式。

@8MiYile
Copy link
Author

8MiYile commented Jan 18, 2024

原来Vanilla支持这个特性了啊,那我关闭了

@8MiYile 8MiYile closed this as completed Jan 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants