MultiLogin
MultiLogin 是一款服务端插件, 功能是让您的服务器支持正版与多种外置登录共存, 用来连接两个或多个外置验证服务器下的玩家,让他们能在一起玩。
外置登录给服务器提供了类似正版的管理和登录方式,但对于一个拥有 Minecraft 正版账号的玩家来说,正版登录是更加简单方便的选择。如果你是一名服务器管理员,可以考虑选用下面的插件实现这种效果。
此插件专为服务端设计。服务器管理员可参考此文档:GitHub / MultiLogin / wiki
单服务端
我们建议直接参考 MultiLogin 的 GitHub Wiki。
若只需要使用 Mojang 和 LittleSkin,仅限创建以下两个文件。
# Below, only the most basic configuration is provided.
# You can refer to the template file to complete all configurations.
# Please edit before use.
id: 0
name: 'Official'
# Don't change it unless you really want to.
serviceType: OFFICIAL
2
3
4
5
6
7
8
9
# Below, only the most basic configuration is provided.
# You can refer to the template file to complete all configurations.
# Please edit before use.
id: 1
name: 'LittleSkin'
# Don't change it unless you really want to.
serviceType: BLESSING_SKIN
yggdrasilAuth:
blessingSkin:
apiRoot: 'https://littleskin.cn/api/yggdrasil'
2
3
4
5
6
7
8
9
10
11
12
Velocity Minecraft 1.13 +
提示
本文采用的测试环境如下:
Velocity
3.3.0-SNAPSHOT git-53923ed8-b351
Paper
1.20.1 git-Paper-196
MultiLogin
git:dba4e6c
警告
截至发稿时,MultiLogin 的最新正式版本仍无法在 Velocity 3.3.0 上运行,故采用开发版本进行测试。
1. 配置 Velocity 转发
对于 Velocity
检查
velocity.toml
文件,确保online-mode
项的值为true
👈toml# Should we authenticate players with Mojang? By default, this is on. online-mode = true
15
16
对于 Paper 子服
检查子服务器的
server.properties
文件,确保online-mode
项的值为false
👈
这会阻止子服务器对玩家进行身份验证,Velocity 将会承担起对玩家进行身份验证的职责。检查子服务器的
config/paper-global.yaml
中的online-mode
项的值为true
👈
这个值在任何情况下都应该与velocity.toml
中的online-mode
项的值保持一致。对于 Paper 1.18.2 或更低版本,
online-mode
将会位于settings.velocity-support.online-mode
。propertiesonline-mode=false
23yamlvelocity: enabled: true online-mode: true secret: '************'
96
97
98
99
2. 配置 MultiLogin
对于 Velocity
安装 MultiLogin 插件,并按照 MultiLogin 的官方文档正确配置插件配置文件。
对于子服务器
仅需在 Velocity 正确配置 MultiLogin 插件即可,无需对子服进行修改。