跳到正文

OfflinePass

作者:Stabosa97

Secure offline servers.

收藏

介绍

中文介绍正在准备中,下面暂时显示原文。

================= SERVER GUIDE =================

  1. Locate your configuration file (/world/serverconfig/serverofflinewhitelist.toml) (ON SERVER!)
  1. Add your users to the file and their passwords (NOT REAL PASSWORDS) Generate them here https://proton.me/pass/password-generator. Do not use special characters, only numbers and letters.
  1. Format them like THIS!

[serverofflinewhitelist]

    userpasswords = [“1234:stabbyeli”, “insertpasswordhere:codinghuman”, “passworddd:RDJX3”, “password:username”]

  1. Send your friends the passwords you generated for them! (or that they generated for you – it can work either way.)

==============================================

================= CLIENT GUIDE  =================

  1. Locate your configuration file (Modpackdir/config/clientofflinewhitelist.toml)
  1. Add the password you generated (or the one the owner of the server generated for you.)
  1. Format it like this

[yourpasscode]

    passcode = “mypasscode”

  1. 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!

maka

 

常见问题

OfflinePass 支持哪些 Minecraft 版本?

OfflinePass 支持 Minecraft Java 版 1.20.1,可用的加载器:Forge。下载时注意选择和你游戏版本一致的文件。

OfflinePass 怎么安装?

先用 PCL2 或 HMCL 启动器安装对应版本的 Forge,再把下载的 .jar 文件放进游戏目录的 mods 文件夹,重新启动游戏即可。开启了版本隔离的,mods 文件夹在 versions/版本名 下面。运行环境:客户端和服务端都要装。

评论

登录后评论和评分

Stabosa97 的其他作品

查看全部 →