# 服务器登录
> **这是一个测试版本。** 该模组可以正常工作且已经过测试,但它较为新颖,尚未在大量不同的服务器和整合包中进行验证。安装前请备份你的世界,并请在遇到问题时报告——此阶段的错误报告有助于使下一个版本更加稳定。
如果你的服务器运行在离线模式下,任何人都可以使用其他任何人的名字加入。没有任何东西
阻止陌生人以你的身份连接、走进你的基地并清空你的箱子。
修复了服务器登录问题。玩家首次加入时会设置密码,之后每次都需要输入该密码。
在未完成此操作前,他们无法移动、聊天、攻击、打开箱子或触碰世界中的任何物品。
undefined
**你的玩家无需安装任何额外内容。** 模组仅存在于服务器上。所有人均可通过
正常的 Minecraft 启动器连接,与以往完全一样。
## 玩家所见界面
undefined
他们加入后会直接回到上次离开的地方——没有大厅、没有传送、也没有黑暗房间。系统会显示一条消息,
提示他们需要输入的内容:
```
/login mypassword
```
首次进入服务器时,他们输入两次以设置密码:
```
/login mypassword mypassword
```
undefined
就是这样。一条命令,即可开始游戏。
## 设置方法
undefined
1. 你需要运行 **Forge 47.4.10** 或更高版本的 **Minecraft 1.20.1** 服务器。
2. 将模组文件放入服务器的 `mods` 文件夹中。
3. 打开 `server.properties` 并将 `online-mode` 设置为 `false`。
4. 启动服务器。
完成。密码会随世界数据一起保存,位于 `world/serverlogin/users.json`。请备份该文件
以及整个世界——如果丢失此文件,所有玩家都必须重新注册。
undefined
## 指令
玩家可用:
undefined
| 指令 | 功能 |
| --- | --- |
| `/login <password>` | 登录 |
| `/login <password> <password>` | 注册(首次使用) |
| `/changepassword` | 修改密码 |
| `/logout` | 登出 |
`/l` 可作为 `/login` 的快捷方式。
undefined
管理员可用(需要权限等级 3):
| 指令 | 功能 |
| --- | --- |
| `/auth count` | 注册了多少玩家 |
| `/auth status <玩家>` | 检查某人是否已注册 |
| `/auth remove <玩家>` | 删除账号,以便他们可以重新注册 |
| `/auth queue` | 查看谁还停留在登录界面 |
| `/auth kick <玩家> [原因]` | 踢出从未登录过的人 |
undefined
`/auth remove` 是在玩家忘记密码时使用的命令。
## 语言
undefined
该模组提供英文和俄文版本。打开 `config/serverlogin-common.toml` 并设置:
```toml
[general]
language = "ru_ru"
```
undefined
你也可以自行重写任何消息——欢迎语、错误提示、踢出文本等——无需修改模组文件。简短指南请参见
[README]。
## 须知
undefined
**密码会被安全存储。** 它们绝不会以明文形式记录,无论是在账户文件中
还是在你的服务器日志中。就连你自己也无法读取它们——这也是为什么一旦忘记密码,就
只能通过 `/auth remove` 重置,且无法恢复。
**猜测的速度很慢。** 在几次尝试失败后,账户会被锁定一分钟,并且
服务器会限制密码尝试的整体频率。
undefined
**如果你运行的是带有 Simple Voice Chat 的整合包**,语音功能需要一个小例外才能正常工作,而该例外
默认已经允许。如果其他模组在玩家登录前出现问题,可以在配置的 `[gate]` 部分
中进行修复——[README]
说明了如何确定具体需要添加的内容。
**这可以保护你服务器上的用户名,仅此而已。** 它不是防火墙,不具备 DDoS 防护功能,并且
它不会加密连接。它可以防止冒充行为,而离线服务器上真正会毁掉基地的正是这种行为。
undefined
## 出现什么问题了?
请在评论区告诉我,或在以下地址提交 issue:
[GitHub]。如果你发现实际的安全漏洞,请
通过
[GitHub 安全公告] 私下报告
公开发布。
- [源代码]
- [更新日志]
免费且开源,采用 MIT 许可证。
# Server Login
> **This is a beta release.** The mod works and is tested, but it is new and has not yet been
> through many different servers and modpacks. Back up your world before installing, and please
> report anything that breaks — bug reports at this stage are what make the next version solid.
undefined
If your server runs in offline mode, anyone can join using anyone else's name. There is nothing
stopping a stranger from connecting as you, walking into your base and emptying your chests.
Server Login fixes that. Players pick a password the first time they join, and type it every time
after. Until they do, they cannot move, chat, attack, open chests, or touch anything in the world.
undefined
**Your players do not need to install anything.** The mod lives on the server. Everyone connects
with the normal Minecraft launcher, exactly as before.
## What players see
undefined
They join and land right where they left off — no lobby, no teleport, no dark room. A message
appears telling them what to type:
```
/login mypassword
```
undefined
First time on the server, they type it twice to set it:
```
/login mypassword mypassword
```
undefined
That's the whole thing. One command, and they're playing.
## Setting it up
undefined
1. You need a Minecraft **1.20.1** server running **Forge 47.4.10** or newer.
2. Put the mod file into your server's `mods` folder.
3. Open `server.properties` and set `online-mode=false`.
4. Start the server.
That's it. Passwords are saved with your world, in `world/serverlogin/users.json`. Back that file up
along with the world — losing it means everyone has to register again.
undefined
## Commands
For players:
undefined
| Command | What it does |
| --- | --- |
| `/login <password>` | Log in |
| `/login <password> <password>` | Register, the first time |
| `/changepassword` | Change your password |
| `/logout` | Log out |
`/l` works as a shortcut for `/login`.
undefined
For admins (needs permission level 3):
| Command | What it does |
| --- | --- |
| `/auth count` | How many players are registered |
| `/auth status <player>` | Check if someone is registered |
| `/auth remove <player>` | Delete an account, so they can register again |
| `/auth queue` | Who is still sitting at the login screen |
| `/auth kick <player> [reason]` | Kick someone who never logged in |
undefined
`/auth remove` is what you use when a player forgets their password.
## Language
undefined
The mod comes in English and Russian. Open `config/serverlogin-common.toml` and set:
```toml
[general]
language = "ru_ru"
```
undefined
You can also rewrite any message yourself — greetings, error messages, the kick text — without
touching the mod file. There is a short guide in the
[README].
## Good to know
undefined
**Passwords are stored safely.** They are never written down as plain text, not in the account file
and not in your server log. Even you cannot read them — which is also why a forgotten password can
only be reset with `/auth remove`, never recovered.
**Guessing is slow going.** After a handful of wrong tries the account locks for a minute, and the
server limits how fast password attempts can be made overall.
undefined
**If you run a modpack with Simple Voice Chat,** voice needs one small exception to work, and it is
already allowed by default. If some other mod misbehaves before players log in, the `[gate]` section
of the config is where you fix it — the [README]
explains how to find out exactly what to add.
**This protects names on your server, nothing more.** It is not a firewall, not DDoS protection, and
it does not encrypt the connection. It stops impersonation, which on an offline server is the thing
that actually ruins bases.
undefined
## Something broken?
Tell me in the comments, or open an issue on
[GitHub]. If you find an actual security hole, please
report it privately through
[GitHub Security Advisories] instead
of posting it publicly.
undefined
- [Source code]
- [Changelog]
Free and open source, MIT licensed.
版本游戏版本平台发布时间本站下载
正式版
1.0.3
Server Login 1.0.3
26.1.2 NeoForge 3 周前 ·
0
26.1.2
NeoForge
3 周前
0
下载 Server Login
正式版
1.0.3
Server Login 1.0.3
1.21.11 NeoForge 3 周前 ·
0
1.21.11
NeoForge
3 周前
0
下载 Server Login
正式版
1.0.3
Server Login 1.0.3
1.21.10 NeoForge 3 周前 ·
0
1.21.10
NeoForge
3 周前
0
下载 Server Login
正式版
1.0.3
Server Login 1.0.3
1.21.8 NeoForge 3 周前 ·
0
1.21.8
NeoForge
3 周前
0
下载 Server Login
正式版
1.0.3
Server Login 1.0.3
1.21.5 NeoForge 3 周前 ·
0
1.21.5
NeoForge
3 周前
0
下载 Server Login
正式版
1.0.3
Server Login 1.0.3
1.21.4 NeoForge 3 周前 ·
0
1.21.4
NeoForge
3 周前
0
下载 Server Login
正式版
1.0.3
Server Login 1.0.3
1.21.1 NeoForge 3 周前 ·
0
1.21.1
NeoForge
3 周前
0
下载 Server Login
正式版
1.0.3
Server Login 1.0.3
1.20.6 NeoForge 3 周前 ·
0
1.20.6
NeoForge
3 周前
0
下载 Server Login
正式版
1.0.3
Server Login 1.0.3
1.20.4 NeoForge 3 周前 ·
0
1.20.4
NeoForge
3 周前
0
下载 Server Login
正式版
1.0.3
[IW] Server Login 1.0.3
1.20.1 Forge 2 个月前 ·
0
1.20.1
Forge
2 个月前
0
下载 Server Login
暂无更新日志
关于这个资源的讨论、问题反馈与使用心得
还没有讨论,来发第一帖吧
你是这个资源的作者?登录后可认领此资源。
相似资源
模组
Woot Revived
pharuxtan
一个用于收集生物掉落物的多区块模组。
生物科技
349
模组
玉Jade ?
Snownee
显示你正在注视的方块的信息。(适用于 Minecraft 1.16+ 的 Hwyla/Waila 分支)
实用前置
341
模组
Xaero的小地图
thexaero
在游戏画面角落显示附近世界地形、玩家、生物和实体的地图。可创建路径点,帮助你找到标记过的位置。
冒险交通
241
模组
KubeJS
Lat
使用 JavaScript 编辑配方、添加自定义物品、编写世界事件!
前置实用
239
模组
物品管理器Just Enough Items (JEI)
mezz
查看物品与配方
前置实用
239
模组
Applied Energistics 2
shartte
AE2:一款流行的自动化与存储模组
存储科技
217
评论 0
登录后参与评分
还没有评论,来抢沙发吧