================= 服务器指南 =================
-
找到你的配置文件 (/world/serverconfig/serverofflinewhitelist.toml)(在服务器上操作!)
-
将用户及其密码添加到文件中(并非真实密码)。在此处生成:。请勿使用特殊字符,仅使用数字和字母。
-
按如下格式填写:
[serverofflinewhitelist]
userpasswords = ["1234:stabbyeli", "insertpasswordhere:codinghuman", "passworddd:RDJX3", "password:username"]
- 将你为他们生成的密码发送给你的朋友们!(或者他们为你生成的密码——两种方式均可。)
==============================================
================= 客户端指南 =================
-
找到你的配置文件 (Modpackdir/config/clientofflinewhitelist.toml)
-
添加你生成的密码(或服务器管理员为你生成的密码)。
-
按如下格式填写:
[yourpasscode]
passcode = "mypasscode"
- 加入服务器!!!当然,前提是你的密码是有效的!
================================================
常见问题 (Q/A)
问:我为什么要将这个添加到我的离线服务器中?
答:首先,白名单功能在离线服务器上是无效的!即使有效,也无济于事——因为在离线模式下你可以将用户名更改为任意名称(这意味着他们可以更改为用户名并获取管理员权限!)。有了这个模组,每个用户都有独特的密码,所以你不能随意冒充任何人!
问:为什么不直接用 /login 命令?
答:登录命令适用于没有安装模组的服务器。你的服务器显然安装了模组,而且登录命令非常烦人!一旦设置好此模组,你就可以完全不用管它了!
问:你会更新吗?
答:也许吧......
问:它是如何工作的?
答:简单来说,你的客户端会向服务器发送一个数据包,大致询问“这个密码是否有效?”然后服务器查看你的用户名和你请求的密码,检查它们是否与任何用户名和密码匹配。如果不匹配,则不允许你进入。
感谢下载我的模组!

================= SERVER GUIDE =================
-
Locate your configuration file (/world/serverconfig/serverofflinewhitelist.toml) (ON SERVER!)
-
Add your users to the file and their passwords (NOT REAL PASSWORDS) Generate them here . Do not use special characters, only numbers and letters.
-
Format them like THIS!
[serverofflinewhitelist]
userpasswords = ["1234:stabbyeli", "insertpasswordhere:codinghuman", "passworddd:RDJX3", "password:username"]
- Send your friends the passwords you generated for them! (or that they generated for you – it can work either way.)
==============================================
================= CLIENT GUIDE =================
-
Locate your configuration file (Modpackdir/config/clientofflinewhitelist.toml)
-
Add the password you generated (or the one the owner of the server generated for you.)
-
Format it like this
[yourpasscode]
passcode = "mypasscode"
- JOIN THE SERVER!!! If your password is valid, of course!
================================================
Q/A
Q: Why would I wanna add this to my offline server?
A: Well, first of all, whitelist doesn’t work for offline servers! And if it did, it wouldn’t even matter – you can change your name to ANYTHING on offline (which means they can change their name to the server owner and get op!) With this, there’s a unique password for each user, so you can’t just become ANYONE!
Q: Why not just a /login command?
A: Login commands are for servers that don’t have mods. Yours clearly does, and login commands are ANNOYING! Once you’ve got this set up, you can completely forget about it!
Q: Will you update?
A: Maybe......
Q: How does it work?
A: To simplify it. Your client sends a packet to the server basically asking "Is this a valid password?" then the server looks at your username and the password you requested and checks if it fits any of the usernames and passwords and if it DOESNT it doesnt let you in.
Thanks for downloading my mod!

评论 0
登录后参与评分
还没有评论,来抢沙发吧