跳到正文

ServerLogin

作者:liubang114

A lightweight server-side login mod for offline mode servers.

收藏

介绍

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

ServerLogin is a lightweight authentication mod designed for offline-mode Minecraft servers. It forces players to register or log in after joining the server, effectively preventing unauthorized players from performing any actions before their identity is verified.

This mod is server-side only. Players do not need to install it on their clients; vanilla clients can join the server normally.

Key Features
· Registration / Login System: First-time players must register with /register <password> <confirm password>. Returning players log in with /login <password>.
· Strict Interaction Restrictions: Unauthenticated players cannot move (WASD is disabled), place or break blocks, attack entities, or interact with any blocks (e.g., opening chests, doors, etc.).
· Command Blocking: Apart from /register and /login, unauthenticated players cannot use any commands (including OP commands).
· Auto-Kick on Timeout: Players who fail to log in within 3 minutes will be automatically kicked from the server.
· Smart Reminders: Chat reminders are sent every 15 seconds prompting players to register or log in, with a note: “If you forgot your password, please contact the server administrator.”
· Register-to-Login: Successful registration automatically logs the player in, eliminating the need to enter the password again.
· Fake Player Compatibility: Fully compatible with fake players from Create (Deployer), Curtain, and Carpet mods. Fake players are automatically bypassed and will not trigger any login logic or timeouts.
· Optimized Console Logging: Logged-in players produce no console output; unauthenticated players only show their login status every 10 seconds, significantly reducing log clutter.
· Unauthenticated Player Protection: Unauthenticated players are immune to all damage (mobs, fall, lava, potions, etc.), monsters do not target them, and explosions (e.g., Creepers) will not damage terrain (visual effects remain).

Data Security
Player passwords are never stored in plaintext. The mod uses the BCrypt hashing algorithm with salt to encrypt passwords, ensuring that even if the server files are compromised, player passwords remain highly resistant to cracking.

Password data is saved in the server’s config/loginmod/players.json file.

Commands & Rules
· Registration command: /register <password> <confirm password>
· Login command: /login <password>
· Password rules:
  · Minimum length of 4 characters
  · Case-sensitive (e.g., Abc123 ≠ abc123)
  · Allowed characters: letters (a–z, A–Z), digits (0–9), and underscores (_)

常见问题

ServerLogin 支持哪些 Minecraft 版本?

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

ServerLogin 怎么安装?

先用 PCL2 或 HMCL 启动器安装对应版本的 Forge,再把下载的 .jar 文件放进游戏目录的 mods 文件夹,重新启动游戏即可。开启了版本隔离的,mods 文件夹在 versions/版本名 下面。

评论

登录后评论和评分

liubang114 的其他作品

查看全部 →