Swrpgservauth 是一款 Minecraft 服务器身份验证模组,它基于预定义的用户名白名单来限制玩家访问。该模组通过将玩家的登录用户名与配置文件(allowed_players.json)进行比对,阻止未授权玩家加入服务器。如果玩家不在白名单中,他们将在尝试加入时被断开连接,从而确保对服务器访问权限的严格控制。
管理员可以通过以下命令管理白名单:
用户管理命令
/addUser:将用户添加到允许列表中,且不限制 IP。默认情况下,其 verifyIp 标志设置为当前的全局设置。
/removeUser:从允许列表中完全移除某个用户。
/listUsers:显示所有已允许的用户及其 verifyIp 状态和注册的 IP 地址。
IP 管理命令
/addIp:向现有用户的允许 IP 列表中添加一个 IP 地址。
/removeIp:从用户的允许 IP 列表中移除一个 IP 地址。
/addIPUser:向用户添加 IP 并立即刷新配置文件。
IP 验证设置
/toggleUserIp:切换用户个人的 verifyIp 标志(true/false)。启用时,其 IP 必须匹配已注册的 IP。
/toggleGlobalIp:切换全局 IP 验证标志(requireIpValidation)。启用时,所有 verifyIp=true 的用户都必须通过 IP 检查。
配置管理
/refreshConfig:重新加载 JSON 配置文件,应用任何外部所做的更改。
该模组具备连接尝试的自动日志记录功能,当有未授权玩家尝试加入时会通知管理员。此外,如果玩家因身份验证失败而被断开连接,该模组会确保将其完全从服务器中移除,防止出现“幽灵”问题。
一句话总结:Swrpgservauth 通过强制执行基于用户名的身份验证、断开未授权玩家的连接并提供用于管理访问权限的管理员命令,增强了 Minecraft 服务器的安全性。
添加了可选的 IP 验证功能——支持全局设置或针对每个用户单独设置。
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.
评论 0
登录后参与评分
还没有评论,来抢沙发吧