跳到正文

swrpgservauth

作者:ShortWlf

ShortWlfs RPG Framework, Custom Server Authentication Security Whitelist

收藏

截图

介绍

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

Swrpgservauth is a Minecraft server authentication mod that restricts player access based on a predefined username allowlist. The mod prevents unauthorized players from joining by checking their username against a configuration file (allowed_players.json). If a player is not listed, they are disconnected upon joining, ensuring tight control over server access.

Administrators can manage the allowlist through commands:

User Management Commands /addUser Adds a user to the allowed list with no IP restrictions. By default, their verifyIp flag is set to the current global setting.

/removeUser Removes a user entirely from the allowed list.

/listUsers Displays all allowed users along with their verifyIp status and registered IPs.

IP Management Commands /addIp Adds an IP address to an existing user’s allowed IP list.

/removeIp Removes an IP address from a user’s allowed IP list.

/addIPUser Adds an IP to a user and refreshes the configuration immediately.

IP Verification Settings /toggleUserIp Toggles a user’s individual verifyIp flag (true/false). When enabled, their IP must match a registered IP.

/toggleGlobalIp Toggles the global IP validation flag (requireIpValidation). When enabled, all users who have verifyIp=true must pass an IP check.

Configuration Management /refreshConfig Reloads the JSON configuration file, applying any changes made externally.

The mod features automated logging for connection attempts, notifying administrators when unauthorized players try to join. It also ensures players are fully removed from the server if they are disconnected due to authentication failure, preventing ghosting issues.

Single-Sentence Summary: Swrpgservauth enhances Minecraft server security by enforcing username-based authentication, disconnecting unauthorized players, and providing admin commands for managing access.

Added optional IP verification. – global / or per user.

常见问题

swrpgservauth 支持哪些 Minecraft 版本?

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

swrpgservauth 怎么安装?

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

评论

登录后评论和评分

ShortWlf 的其他作品

查看全部 →