Safeserver
一个用于 Minecraft 的简单 Fabric 模组,为你的服务器添加强制密码认证功能,从而增强安全性。
专为关闭在线模式(offline-mode)/ 盗版服务器设计。
功能
- 密码保护: 玩家首次加入时必须设置密码,并在后续加入时进行登录。
- 交互阻止: 防止未认证的玩家破坏/放置方块、使用物品/实体或与世界进行互动。
- 命令限制: 在玩家完成认证之前,除
/login和/setpassword外,禁止所有其他命令。 - 安全存储: 密码经过安全哈希处理(SHA-256)并存储在 JSON 文件 (
config/safeserver/passwords.json) 中。 - OP 状态保护:
- 玩家加入后,在其完成认证前临时移除 OP 权限。
- 作为安全措施,玩家断开连接时移除其 OP 权限。
- 如果玩家原本是 OP,则在认证成功恢复其 OP 权限。
- 位置冻结与安全: 如果需要认证,玩家加入时会被置于旁观者模式并传送至一个安全的固定位置(坐标为 0, 计算出的地表 Y 值, 0)。在未完成认证前,他们将停留在此位置,以防止坐标泄露。成功登录后将恢复其原始位置。
命令
/setpassword <password> <password>- 在首次加入服务器时设置初始密码。
- 需要输入两次密码以确认。
- 仅在需要时使用(首次加入)。
/login <password>- 使用你已有的密码登录服务器。
- 仅在需要时使用(后续加入)。
/changepassword <oldPassword> <newPassword> <newPassword>- 允许已认证的玩家更改自己的密码。
- 需要提供旧密码并确认新密码。
/resetpassword <playerName>- 仅限 OP(等级 2+): 重置指定玩家的密码。
- 强制目标玩家在下次加入时使用
/setpassword设置新密码(如果该玩家当前在线,则立即生效)。
安装
- 确保已安装 Fabric Loader。
- 下载
Safeserver模组的 JAR 文件。 - 将 JAR 文件放入服务器的
mods文件夹中。 - 重启你的服务器。
模组将在首次加载时自动生成必要的配置文件。
Safeserver
A simple Fabric mod for Minecraft that adds mandatory password authentication to your server, enhancing security.
Made for online-mode off / cracked servers.
Features
- Password Protection: Players must set a password on their first join and log in on subsequent joins.
- Interaction Blocking: Prevents unauthenticated players from breaking/placing blocks, using items/entities, or interacting with the world.
- Command Restriction: Blocks all commands except
/loginand/setpassworduntil the player is authenticated. - Secure Storage: Passwords are securely hashed (SHA-256) and stored in a JSON file (
config/safeserver/passwords.json). - OP Safety:
- Temporarily removes OP status from players upon joining until they authenticate.
- Removes OP status from players upon disconnecting as a safety measure.
- Restores OP status after successful authentication if the player was originally OP.
- Position Freeze & Safety: Players are placed in Spectator mode and teleported to a safe, fixed location (0, calculated surface Y, 0) upon joining if authentication is needed. They are kept at this location until authenticated, preventing coordinate leakage. Their original position is restored upon successful login.
Commands
/setpassword <password> <password>- Sets your initial password upon first joining the server.
- Requires typing the password twice for confirmation.
- Only usable when required (first join).
/login <password>- Logs you into the server with your existing password.
- Only usable when required (subsequent joins).
/changepassword <oldPassword> <newPassword> <newPassword>- Allows an authenticated player to change their own password.
- Requires the old password and confirmation of the new password.
/resetpassword <playerName>- OP Only (Level 2+): Resets the password for the specified player.
- Forces the target player to set a new password using
/setpasswordon their next join (or immediately if they are currently online).
Installation
- Ensure you have the Fabric Loader installed.
- Download the
Safeservermod JAR file. - Place the JAR file into your server's
modsfolder. - Restart your server.
The mod will automatically generate the necessary configuration file upon first load.
下载 safeserver
下载 safeserver
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 safeserver
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 safeserver
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 safeserver
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 safeserver
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 safeserver
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 safeserver
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 safeserver
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 safeserver
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
新增对 Minecraft 26.3 的支持。
其余内容均无变化。从 1.20.1 到 26.2 的所有版本仍在此构建并发布,身份验证流程本身也保持不变。26.3 完全无需进行代码修改——模组所挂钩的服务端 API 与 26.2 中相同。
下载按版本提供,请选择与你的服务端完全匹配的 jar 文件,例如 safeserver-2.2.0+mc26.3.jar(适用于 26.3 服务端)。
关于这个资源的讨论、问题反馈与使用心得
还没有讨论,来发第一帖吧
你是这个资源的作者?登录后可认领此资源。
相似资源
模组
显示你正在注视的方块的信息。(适用于 Minecraft 1.16+ 的 Hwyla/Waila 分支)
模组
使用 JavaScript 编辑配方、添加自定义物品、编写世界事件!
模组
查看物品与配方
模组
在游戏画面角落显示附近世界地形、玩家、生物和实体的地图。可创建路径点,帮助你找到标记过的位置。
模组
AE2:一款流行的自动化与存储模组
模组
那是什么?一个 Waila/Hwyla 的分支。
评论 0
登录后参与评分
还没有评论,来抢沙发吧