目标
InvalidPlayerBypassList 允许特定玩家在服务器处于 在线模式(online mode) 时加入 Minecraft 服务器,即使未通过 Mojang 身份验证也是如此。
这对于私有测试、局域网设置或某些用户名(以及可选的 IP 地址)需要绕过身份验证检查的回退场景非常有用。
此模组仅在服务器设置为 online-mode=true 时生效,它会拦截登录尝试,并在玩家名称和 IP 与可配置的白名单条目匹配时允许访问。
工作原理
当玩家尝试加入服务器时,模组会检查其是否在白名单中。该列表由以下配对定义:
如果通过配置启用了 IP 强制验证,则玩家必须同时匹配名称和 IP。否则,如果指定了 "none",则只需匹配名称即可。
命令
您可以直接使用 Minecraft 服务器命令管理白名单:
/bypasslist add <player> [ip]
- 将玩家(可选带 IP)添加到白名单中。
- 如果启用了 IP 检查,则必须提供 IP。
/bypasslist remove <player> [ip]
- 从白名单中移除特定玩家。
- 如果未提供 IP,则将该玩家的所有条目移除。
/bypasslist list
/bypasslist on
/bypasslist off
所有命令都需要 2 级或更高的权限等级(例如服务器操作员)。
配置
配置文件位于 invalidplayerbypasslist.properties,包含以下设置:
| 属性 |
描述 |
类型 |
默认值 |
ip-required |
如果为 true,玩家必须同时匹配用户名和 IP 才能绕过身份验证。 |
boolean |
true |
enforce-bypasslist |
如果为 true,白名单将在服务器启动时激活。 |
boolean |
true |
使用场景
此模组适用于:
- 列入白名单的开发环境
- 已知用户名/IP 的测试服务器
- 在
online-mode 下仍保持离线访问回退功能
- 针对已知玩家的受控安全绕过
报告问题
如果您发现错误或希望请求新功能:
- 前往仓库的 Issues 标签页。
- 点击 New Issue。
- 使用适当的模板(Bug Report 或 Feature Request)。
- 填写所有相关详细信息。
- 提交问题。
Goal
InvalidPlayerBypassList allows specific players to join a Minecraft server even when the server is in online mode, regardless of Mojang authentication.
This is particularly useful for private testing, LAN setups, or fallback scenarios where certain usernames (and optionally IPs) should be allowed to bypass authentication checks.
This mod works only if the server is in online-mode=true, and it will intercept login attempts and allow access if the player's name and IP match entries in a configurable bypass list.
How It Works
When a player tries to join the server, the mod checks if they are present in the bypass list. This list is defined by pairs of:
- Username
- Optional IP address
If IP enforcement is enabled via config, the player must match both the name and IP. Otherwise, just the name is sufficient if "none" is specified.
Commands
You can manage the bypass list directly using Minecraft server commands:
/bypasslist add <player> [ip]
- Adds a player (with optional IP) to the bypass list.
- If IP checking is enabled, the IP must be provided.
/bypasslist remove <player> [ip]
- Removes a specific player from the bypass list.
- If the IP is not provided, all entries for the player will be removed.
/bypasslist list
- Lists all current entries in the bypass list with their associated IPs.
/bypasslist on
- Enables the bypass list at runtime.
/bypasslist off
- Disables the bypass list at runtime.
All commands require a permission level of 2 or higher (e.g., server operators).
Config
Configuration can be found under invalidplayerbypasslist.properties and includes the following settings:
| Property |
Description |
Type |
Default |
ip-required |
If true, players must match both username and IP to bypass authentication. |
boolean |
true |
enforce-bypasslist |
If true, the bypass list is active on server startup. |
boolean |
true |
Use Cases
This mod is ideal for:
- Whitelisted development environments
- Testing servers with known usernames/IPs
- Offline access fallback while still in
online-mode
- Controlled security bypass for known players
Reporting Issues
If you find a bug or want to request a feature:
- Go to the Issues tab of the repository.
- Click New Issue.
- Use the appropriate template (Bug Report or Feature Request).
- Fill in all relevant details.
- Submit the issue.
评论 0
登录后参与评分
还没有评论,来抢沙发吧