为 UserLogin 2.12.1+ 和 NukeLogin 0.0.4+ 提供自动登录功能。
此处,“主插件”指 UserLogin 或 NukeLogin。
假设你有一个代理服务器和三台后端服务器:lobby、survival 和 mini-games。其中 lobby 服务器安装了“主插件”,玩家仅在此处(且必须在此处)进行登录(或注册),并通过传送门传送到其他服务器。
设想玩家 BratishkaErik 加入了服务器,在 lobby 完成授权后进入了 survival 的传送门。随后,他决定前往 mini-games 服务器,但必须经由 lobby 服务器中转:
- 不支持自动登录时:BratishkaErik 必须手动登录,仿佛他在待在
survival 服务器期间,始终处于 lobby 服务器的离线状态。这对某些玩家来说可能会很烦人。
- 支持自动登录时:BratishkaErik 会自动登录,仿佛他在待在
survival 服务器期间,始终处于 lobby 服务器的在线状态。玩家无需执行任何操作,即可直接前往 mini-games 的传送门。
请注意,在第二种场景下,“主插件”配置文件中的 ipCache 设置将不被生效。
安装方法
Jar 文件
- 下载“主插件”并将其放入你的认证服务器(auth server)的
plugins 文件夹中。
- 下载 UserLoginProxy 并将其放入你的 Velocity 3 或 BungeeCord 代理服务器的
plugins 文件夹中(不是认证服务器!)。
配置
- 对于“主插件”:在
config.yml 中启用 autologin 设置:
bungeeCord:
# ...
autoLogin: true
- 对于本插件:在
config.yml 的 auth-servers 列表中添加后端服务器(即安装了“主插件”的服务器):
auth-servers:
- 'lobby'
- 'another_lobby'
最后,重启服务器。现在,当玩家切换到 lobby 或 another_lobby 时,将会自动登录。
权限与命令
本插件没有权限节点。只有一个命令 /userloginproxy(别名 /ulp),用于重新读取配置文件。
许可证
本插件采用“GNU GPL v3 或更高版本”许可证发布。发布的 Jar 文件中包含了重新定位过的 DazzleConf 1.2.1,该库采用“GNU LGPL v3 或更高版本”许可证发布。
Autologin feature for UserLogin 2.12.1+ and NukeLogin 0.0.4+.
Here, the “main plugin” refers to the UserLogin or NukeLogin.
Suppose you have a proxy and three servers: lobby, survival and mini-games. The lobby server has the “main plugin” installed, and here (and only here!) players log in (or register) and teleport through portals to other servers.
Let’s imagine that some player, BratishkaErik, joined the server, authorized on lobby, and went to the survival portal. Then, he decided to go to the mini-games server, but he needed to go via the lobby server:
- Without autologin support: BratishkaErik must log in manually as if he were offline on
lobby the whole time he was on the survival server. This can be annoying for some players.
- With autologin support: BratishkaErik logged in automatically as if he were online on the
lobby the whole time he was on the survival server. Player don't need to do anything and he can go straight to the mini-games portal.
Note that in the second scenario ipCache setting from “main plugin” config is not respected.
How to install
Jar-files
- Download “main plugin” and put it into plugins folder of your auth server.
- Download UserLoginProxy and put it into plugins folder of your Velocity 3 or BungeeCord proxy (not auth server!).
Configuration
- For “main plugin”: enable
autologin setting in config.yml:
bungeeCord:
# ...
autoLogin: true
- For this plugin: add backend server(s) (where “main plugin” is installed) to the
auth-servers list in config.yml:
auth-servers:
- 'lobby'
- 'another_lobby'
Finally, restart servers. Now players will be logged in automatically when changing server to lobby or another_lobby.
Permissions and Commands
There are no permissions. There is only one command, /userloginproxy (alias /ulp), that re-reads config.
License
This plugin is licensed under “GNU GPL v3 or later” license. Release jars includes relocated DazzleConf 1.2.1, which is licensed under “GNU LGPL v3 or later” license.
评论 0
登录后参与评分
还没有评论,来抢沙发吧