AdminLock – Secure Operator Authentication
AdminLock is a server-side authentication mod for Forge 1.20.1 on non-premium servers. It protects OP accounts with a password using a hybrid approach and requires no client-side installation.
介绍
In offline-mode servers, users can connect using an administrator’s exact username. If that administrator disconnects without removing OP privileges, an impersonator could gain control. AdminLock adds an independent security layer on top of Minecraft player identities:
- Normal players can join without registration or login screens.
- Operator accounts can be forced to authenticate via a password.
- Specific custom usernames can be protected manually.
- Protected accounts can be restricted to specific IP addresses.
- Passwords use PBKDF2-HMAC-SHA256 with unique salts and configurable iterations.
- Optimized to consume virtually zero performance overhead during normal gameplay.
✨ Features & Configuration
- Operator Protection: Automatically secures OP accounts when
protectAllOps = true. - Selective Protection: Manually secure specific names via
/adminlock add <player>. - Flexible Registration: Optional or mandatory registration modes for normal players using
allowPlayerRegistrationandrequirePlayerRegistration. - Independent Admin Security: Keeps admin password creation restricted to the console via
/adminlock setpass <player> <password>whenallowAdminSelfRegistration = false. - Security Measures: Includes login timeouts (
loginTimeoutSeconds) and failed attempt lockouts (maxFailedAttempts).
🕹️ Quick Command Reference
/register <password> <confirmPassword>— Register a new account (Permission: Player)/login <password>— Authenticate a protected account (Permission: Player)/changepassword <old> <new>— Change current password (Permission: Player)/adminlock list— List all protected accounts (Permission: Admin)/adminlock info <player>— View status and IP configuration (Permission: Admin)/adminlock add <player>— Manually protect a username (Permission: Admin)/adminlock remove <player>— Remove manual protection (Permission: Admin)/adminlock setpass <player> <password>— Create or replace a password (Permission: Admin)/adminlock resetpass <player>— Delete stored password (Permission: Admin)/adminlock reload— Reload configuration files (Permission: Admin)
📦 Installation & Compatibility
- Install Minecraft Forge 1.20.1 (Forge 47.x build) on your dedicated server.
- Place the
AdminLock.jarfile into the server’smodsfolder. - Start the server once to generate configuration files in
config/adminlock.toml. - Configure settings and set initial operator passwords via console commands.
- Compatibility: Minecraft 1.20.1 | Forge | Dedicated Server (Offline-Mode compatible) | No client-side installation required.
Support the Project
AdminLock is provided free of charge for the community. If you would like to support its continued development and maintenance, voluntary contributions are welcome:
👉 Donate via PayPal
常见问题
AdminLock – Secure Operator Authentication 支持哪些 Minecraft 版本?
AdminLock – Secure Operator Authentication 支持 Minecraft Java 版 1.20.1,可用的加载器:Forge。下载时注意选择和你游戏版本一致的文件。
AdminLock – Secure Operator Authentication 怎么安装?
先用 PCL2 或 HMCL 启动器安装对应版本的 Forge,再把下载的 .jar 文件放进游戏目录的 mods 文件夹,重新启动游戏即可。开启了版本隔离的,mods 文件夹在 versions/版本名 下面。
SamuZone 的其他作品
查看全部 →FakePing — Lightweight Server-Side Player Count & Tab Simulation
A lightweight, server-side Forge 1.20.1 mod that simulates server population, tab lists, and chat activity without entities or performance impact.
AdvancedAnnouncements — Professional Global Broadcast & Template System
AdvancedAnnouncements is a lightweight server-side Forge 1.20.1 mod that enables global command-based broadcast templates with seamless virtual player autocompletion integration.
NodeCraft – Resource Nodes & Extraction System
NodeCraft is a 100% server-side Forge mod that introduces advanced, customizable resource nodes featuring progressive extraction, cooldowns, and flexible on-demand or automated generation control.
评论
登录后评论和评分