? Can You Draw It?
? PremiumAuthBypass
PremiumAuthBypass 是一款 Bukkit/Spigot 插件,旨在通过允许基于受信任 IP 地址的自动登录,为正版 Minecraft 玩家简化身份验证流程。
它与 AuthMe Reloaded 集成,并使用 AES 加密将玩家账户安全地绑定到其 IP 地址。
⚠️ 安全警告,请务必阅读:代理配置 (Velocity / BungeeCord)
如果你的服务器位于 Velocity 等代理后面,你必须正确配置 IP 转发。否则,插件将检测到代理的 IP 地址(127.0.0.1)而不是玩家的真实 IP,这将破坏 IP 绑定系统并带来安全风险。
确保在 velocity.toml 以及你的后端服务器(Spigot/Paper)上设置转发模式:
- 现代模式(推荐):
- Velocity:
player-info-forwarding-mode = "modern" - Paper: 在
paper-global.yml中启用velocity-support。
- Velocity:
- BungeeGuard 模式:
- Velocity:
player-info-forwarding-mode = "bungeeguard" - Spigot/Paper: 安装
BungeeGuard插件。
- Velocity:
- 传统模式:
- Velocity:
player-info-forwarding-mode = "legacy" - Spigot: 在
spigot.yml中设置bungeecord: true。
- Velocity:
✨ 功能
-
? 自动登录
- 如果玩家从受信任的 IP 连接,立即自动登录。
-
? 正版账户验证
- 针对 Mojang API 检查用户名,以确保它们是正版账户。
-
? IP 绑定系统
- 玩家可以将他们的 IP 绑定到账户,以便未来进行自动身份验证。
-
? AES 加密
- 所有存储的 IP 地址均经过加密(AES-128)以保障安全。
-
⚡ 异步操作
- 网络请求和文件保存以异步方式处理,以避免服务器卡顿。
-
? 智能 AuthMe 集成
- 使用反射机制支持多个版本的 AuthMe。
-
? 完全可配置的提示消息
- 通过配置文件自定义所有插件提示消息。
? 依赖项
- Java 8+
- Bukkit / Spigot / Paper 服务器
- AuthMe Reloaded(推荐以实现完整功能)
⚙️ 工作原理
-
当玩家加入时:
- 插件检查其 IP 是否已绑定。
- 如果是 → 通过 AuthMe 自动登录。
-
如果未绑定:
- 插件验证该账户是否为正版。
- 提示玩家绑定其 IP。
-
绑定完成后:
- 来自该 IP 的未来登录将自动完成。
? 命令
| 命令 | 描述 |
|---|---|
/premium accept |
将当前 IP 绑定到你的账户 |
/premium revoke |
移除当前绑定的 IP |
/premium revoke all |
移除所有绑定的 IP |
/premium list |
显示已绑定的 IP(需要确认) |
/premium about |
显示插件信息 |
? 配置文件
config.yml
- 启用/禁用插件
- 自定义提示消息
- 控制加入行为
linked.yml
- 存储每个玩家加密后的 IP
- 由插件自动管理
? 安全性
- 使用 AES-128 加密 存储 IP
- 如果加密失败,回退到 Base64
- 文件中不存储明文 IP
? 兼容性
插件通过以下方式动态检测 AuthMe API:
fr.xephi.authme.api.v3.AuthMeApifr.xephi.authme.api.API- 旧版
AuthMeAPI
? 外部 API
- 使用 Mojang 端点: 来验证正版账户。
⚠️ 注意事项
- 需要 AuthMe 来强制玩家登录。
- 如果没有 AuthMe,插件仍会运行,但无法自动登录用户。
- 基于 IP 的登录假设玩家 IP 稳定。
- 安全警告: 如果在代理(Velocity/BungeeCord)后面运行,你必须正确配置 IP 转发。如果插件检测到
127.0.0.1作为玩家的 IP,自动登录将会失败或导致所有本地连接存在绕过安全风险。
? 示例用例
一名正版玩家经常从同一地点加入你的服务器。
✔ 首次登录 → 手动认证
✔ 通过 /premium accept 接受 IP 绑定
✔ 后续登录 → 瞬间自动登录 ?
? Can You Draw It?
? PremiumAuthBypass
PremiumAuthBypass is a Bukkit/Spigot plugin designed to streamline authentication for premium Minecraft players by allowing automatic login based on trusted IP addresses.
It integrates with AuthMe Reloaded and securely links player accounts to their IPs using AES encryption.
⚠️ SECURITY WARNING, PLEASE READ THIS: Proxy Configuration (Velocity / BungeeCord)
If your server runs behind a proxy like Velocity, you must properly configure IP Forwarding. Otherwise, the plugin will detect the proxy's IP address (127.0.0.1) instead of the player's real IP, which will break the IP linking system and create a security risk.
Make sure to set up the forwarding mode in your velocity.toml AND on your backend servers (Spigot/Paper):
- Modern Mode (Recommended):
- Velocity:
player-info-forwarding-mode = "modern" - Paper: Enable
velocity-supportinpaper-global.yml.
- Velocity:
- BungeeGuard Mode:
- Velocity:
player-info-forwarding-mode = "bungeeguard" - Spigot/Paper: Install the
BungeeGuardplugin.
- Velocity:
- Legacy Mode:
- Velocity:
player-info-forwarding-mode = "legacy" - Spigot: Set
bungeecord: trueinspigot.yml.
- Velocity:
✨ Features
-
? Automatic Login
- Instantly logs in players if they connect from a trusted IP.
-
? Premium Account Verification
- Checks usernames against Mojang API to ensure they are premium accounts.
-
? IP Linking System
- Players can link their IP to their account for future automatic authentication.
-
? AES Encryption
- All stored IP addresses are encrypted (AES-128) for security.
-
⚡ Async Operations
- Network requests and file saves are handled asynchronously to avoid server lag.
-
? Smart AuthMe Integration
- Uses reflection to support multiple versions of AuthMe.
-
? Fully Configurable Messages
- Customize all plugin messages via config.
? Requirements
- Java 8+
- Bukkit / Spigot / Paper server
- AuthMe Reloaded (recommended for full functionality)
⚙️ How It Works
-
When a player joins:
- The plugin checks if their IP is already linked.
- If yes → automatic login via AuthMe.
-
If not linked:
- The plugin verifies if the account is premium.
- Prompts the player to link their IP.
-
Once linked:
- Future logins from that IP are automatic.
? Commands
| Command | Description |
|---|---|
/premium accept |
Link your current IP to your account |
/premium revoke |
Remove your current IP |
/premium revoke all |
Remove all linked IPs |
/premium list |
Show linked IPs (confirmation required) |
/premium about |
Show plugin info |
? Configuration Files
config.yml
- Enable/disable plugin
- Customize messages
- Control join behavior
linked.yml
- Stores encrypted IPs per player
- Automatically managed by the plugin
? Security
- Uses AES-128 encryption for IP storage
- Fallback to Base64 if encryption fails
- No plain IPs stored in files
? Compatibility
The plugin dynamically detects AuthMe API using:
fr.xephi.authme.api.v3.AuthMeApifr.xephi.authme.api.API- Legacy
AuthMeAPI
? External API
- Uses Mojang endpoint: {username} to verify premium accounts.
⚠️ Notes
- Requires AuthMe to force login players.
- Without AuthMe, the plugin still runs but cannot auto-login users.
- IP-based login assumes stable player IPs.
- Security Warning: If running behind a proxy (Velocity/BungeeCord), you must configure IP forwarding properly. If the plugin detects
127.0.0.1as the player's IP, automatic login will fail or risk bypassing security for all local connections.
? Example Use Case
A premium player joins your server regularly from the same location.
✔ First login → manually authenticate
✔ Accept IP linking via /premium accept
✔ Next logins → instant automatic login ?
下载 AuthMe ForceLogin
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 AuthMe ForceLogin
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 AuthMe ForceLogin
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 AuthMe ForceLogin
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 AuthMe ForceLogin
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 AuthMe ForceLogin
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 AuthMe ForceLogin
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
修复: 我们解决了一个安全漏洞,当插件检测到 127.0.0.1 或本地 IP 地址时,玩家可能会利用该漏洞。
之前, 本地 IP 检测 可能导致自动登录绕过被错误触发。 现已修复:对于 127.0.0.1 和所有本地回环地址,绕过机制现在会被严格禁用,以确保无法伪造玩家身份验证。
安全警告: 如果运行在代理服务器(Velocity/BungeeCord)后面,您必须正确配置 IP 转发。如果插件将玩家的 IP 识别为 127.0.0.1,则该玩家将完全无法使用自动登录功能,从而避免对所有本地连接造成安全风险。
关于这个资源的讨论、问题反馈与使用心得
还没有讨论,来发第一帖吧
你是这个资源的作者?登录后可认领此资源。
相似资源
插件
PacketEvents 是一款专为 Minecraft Java 版打造的协议库,旨在简化数据包的处理与传输。
插件
ExyliaPlugins 的库。
插件
通过对话框或铁砧界面帮助你的 Anthme
插件
重新定义服务器上的生物运输方式。使用高度可定制的口袋道具,安全地捕获、存储和释放任何实体。
插件
为基于 Spigot/Paper/Folia 的服务器添加对 Vivecraft 的支持
插件
用于绘制游戏内地图或在浏览器中随探索实时进行地图绘制的实时地图。
评论 0
登录后参与评分
还没有评论,来抢沙发吧