面向 Velocity 代理服务器的高级认证系统 ?

使用高级认证、Discord 集成和正版账户支持来保护你的 Velocity 网络
? 功能特性
? 多方法认证
- 密码认证:基于 Argon2 哈希的传统安全密码系统
- Discord 集成:关联 Discord 账户以实现无缝认证
- 正版自动登录:为 Minecraft 正版账户提供自动认证
- 混合模式:结合密码 + Discord 以实现最高安全性
?️ 高级安全性
- 会话管理:可配置的会话时长(0-1 小时)
- IP 验证:可选的基于 IP 的会话验证
- 速率限制:防止暴力破解攻击
- 正版验证:实时 Mojang API 验证
- 基岩版支持:兼容 Floodgate 以支持跨平台游玩
? Discord Bot 集成
- 实时验证:即时通过 Discord DM 进行验证
- 加入通知:当有人使用你的账户登录时发送安全警报
- 账户管理:通过 Discord 更改密码、管理会话
- 管理员命令:通过 Discord 斜杠命令完全控制服务器管理
- 富嵌入消息:美观且信息丰富的 Discord 消息
? 多语言支持
- 包含 English 和 Arabic 语言包
- 自定义消息:支持完整的消息自定义
? 灵活的数据库支持
- SQLite:零配置本地数据库(默认)
- MySQL/MariaDB:支持多服务器设置的网络数据库
- PostgreSQL:具有高级功能的企业关系级数据库
- 连接池:高性能 HikariCP 集成
? 截图
Discord 集成

带有交互式按钮的无缝 Discord 验证
管理员仪表板

通过 Discord 斜杠命令访问的强大管理工具
安全通知

实时安全通知确保你的账户安全
优化的 Limbo 世界

? 安装
前置要求
- Velocity Proxy 3.4.0 或更高版本
- Java 21 或更高版本
- LimboAPI 插件(必需依赖项)
- Discord Bot(可选,用于启用 Discord 功能)
步骤 1:下载并安装
- 下载插件 JAR 文件
- 将 JAR 文件放入 Velocity
plugins/文件夹中 - 安装 LimboAPI,将其放置在同一个文件夹中
- 重启你的 Velocity 代理
步骤 2:初始配置
- 导航至
plugins/relishauth/ - 编辑
config.yml以配置你的认证方式 - 设置你的数据库连接
- 配置 Discord Bot(可选但推荐)
步骤 3:Discord Bot 设置(可选)
- 在 Discord Developer Portal 创建 Discord 应用程序
- 创建一个 Bot 并复制令牌(Token)
- 将令牌添加到你的
config.yml中 - 邀请该 Bot 到你的 Discord 服务器,并赋予适当的权限
⚙️ 配置
基本配置
# 选择你的认证方式
authentication:
method: "password" # 选项:password, discord
premium-auto-login: true
allow-bedrock-players: true
# 会话管理
session:
duration: "5m" # 选项:0, 1m, 5m, 15m, 30m, 1h
allow-different-locations: true
# 数据库设置
database:
type: "sqlite" # 选项:sqlite, mysql, mariadb, postgresql
sqlite:
path: "data.db"
认证方式
? 密码认证
适合希望拥有安全基于密码认证的傳統服务器:
authentication:
method: "password"
password:
min-length: 6
max-length: 32
hashing: "argon2" # 安全的密码哈希
工作原理:
- 新玩家首次加入时创建密码
- 回归玩家输入密码以进行认证
- 根据配置的时长保存会话
- 可选链接 Discord 以获取额外功能

? Discord 认证
非常适合以 Discord 为中心的社区:
authentication:
method: "discord"
discord:
bot-token: "YOUR_BOT_TOKEN"
# 你可以设置单个服务器 ID:
# server-id: "YOUR_DISCORD_SERVER_ID"
# 或者多个服务器 ID:
# server-id: ["GUILD_ID_1", "GUILD_ID_2"]
server-id: "YOUR_DISCORD_SERVER_ID"
工作原理:
- 玩家在游戏中输入他们的 Discord 用户名
- Bot 发送带有交互式按钮的验证 DM
- 玩家点击“Verify”进行认证
- 账户永久绑定到 Discord

? 正版自动登录
为正版玩家提供 streamlined 体验:
authentication:
premium-auto-login: true
allow-premium-username-impersonation: false # 安全性:防止冒充
工作原理:
- 正版账户通过 Mojang API 自动验证
- 无需密码或 Discord 验证
- 合法的正版玩家即时访问服务器
- 盗版客户端无法冒充正版账户

安全配置
security:
authentication-timeout: 300 # 认证超时时间:5 分钟
password-attempts:
max-attempts: 3
lock-duration: 15 # 锁定持续时间(分钟)
premium:
verification-timeout: 5
api-url: "https://api.mojang.com/users/profiles/minecraft/"
Limbo 认证界面
customization:
limbo:
title:
enabled: true
actionbar:
enabled: true
bossbar:
enabled: true
color: "BLUE"
overlay: "PROGRESS"
RelishAuth 现在将认证等待世界(auth limbo world)的行为硬编码以确保稳定性。移动限制和认证世界的布局不再可配置。
? 命令
玩家命令
| 命令 | 描述 | 用法 |
|---|---|---|
/ra password <pass> <confirm> |
设置/更改密码 | /ra password mypass123 mypass123 |
/ra discord <username> |
绑定 Discord 账号 | /ra discord john_doe |
/ra logout |
清除所有会话 | /ra logout |
/ra session [duration] |
设置会话时长 | /ra session 30m |
/ra notify <on/off> |
切换加入通知 | /ra notify on |
/ra unlink |
解除绑定 Discord 账号 | /ra unlink |
/ra info |
查看账户信息 | /ra info |
管理员命令
| 命令 | 描述 | 用法 |
|---|---|---|
/ra reload |
重载配置 | /ra reload |
/ra info <player> |
查看玩家信息 | /ra info PlayerName |
/ra unlink <player> |
解除玩家的 Discord 绑定 | /ra unlink PlayerName |
/ra block <username> <ip> |
禁止指定 IP 的用户名登录 | /ra block Griefer 192.168.1.1 |
/ra unblock <username> <from> |
解除对指定 IP 的用户名封锁 | /ra unblock Griefer 192.168.1.1 |
/ra clearblocks <username> |
清除该用户名的所有封锁记录 | /ra clearblocks Griefer |
/ra setpassword <player> <new> <confirm> |
管理员为玩家设置密码 | /ra setpassword PlayerName NewPass NewPass |
/ra resetpassword <player> [length] |
管理员重置密码(临时密码) | /ra resetpassword PlayerName 16 |
? Discord Bot 集成
设置流程
-
创建 Discord 应用
- 前往 Discord Developer Portal
- 点击 "New Application" 并为其命名
- 导航至 "Bot" 部分并创建机器人
-
配置机器人权限 所需权限:
- Send Messages(发送消息)
- Use Slash Commands(使用斜杠命令)
- Manage Roles(管理角色,用于已绑定角色)
- Read Message History(读取消息历史)
-
邀请机器人到服务器
https://discord.com/api/oauth2/authorize?client_id=YOUR_BOT_ID&permissions=268435456&scope=bot%20applications.commands -
在 RelishAuth 中配置
discord: bot-token: "YOUR_BOT_TOKEN" # 您可以设置单个服务器 ID: # server-id: "YOUR_DISCORD_SERVER_ID" # 或多个服务器 ID: # server-id: ["GUILD_ID_1", "GUILD_ID_2"] server-id: "YOUR_DISCORD_SERVER_ID" linked-role-id: "ROLE_ID_FOR_LINKED_USERS"
Discord 斜杠命令
| 命令 | 描述 | 权限 |
|---|---|---|
/link |
绑定账号说明 | 所有人 |
/session [duration] |
设置会话时长 | 已绑定用户 |
/notifications [toggle] |
切换加入通知 | 已绑定用户 |
/info [player] |
查看账户信息 | 管理员 |
/kick <player> |
将玩家踢出服务器 | 管理员 |
/unlink <player> |
解除玩家的账号绑定 | 管理员 |
/block <username> <ip> |
禁止指定 IP 的用户名登录 | 管理员 |
/unblock <username> <from> |
解除对指定 IP 的用户名封锁 | 管理员 |
/clearblocks <username> |
清除该用户名的所有封锁记录 | 管理员 |
/setpassword <player> <new> <confirm> |
管理员为玩家设置密码 | 管理员 |
/resetpassword <player> [length] |
管理员重置密码(临时密码) | 管理员 |
/reload |
重载插件配置 | 管理员 |
? 支持与链接
由 M5LB ❤️ 制作
Advanced Authentication System for Velocity Proxy Servers ?

Secure your Velocity network with advanced authentication, Discord integration, and premium account support
? Features
? Multi-Method Authentication
- Password Authentication: Traditional secure password system with Argon2 hashing
- Discord Integration: Link Discord accounts for seamless authentication
- Premium Auto-Login: Automatic authentication for premium Minecraft accounts
- Hybrid Mode: Combine password + Discord for maximum security
?️ Advanced Security
- Session Management: Configurable session durations (0-1 hour)
- IP Validation: Optional IP-based session validation
- Rate Limiting: Protection against brute force attacks
- Premium Verification: Real-time Mojang API validation
- Bedrock Support: Compatible with Floodgate for cross-platform play
? Discord Bot Integration
- Real-time Verification: Instant Discord DM verification
- Join Notifications: Security alerts when someone joins with your account
- Account Management: Change passwords, manage sessions via Discord
- Admin Commands: Full server management through Discord slash commands
- Rich Embeds: Beautiful, informative Discord messages
? Multi-Language Support
- English and Arabic language packs included
- Customizable Messages: Full message customization support
? Flexible Database Support
- SQLite: Zero-configuration local database (default)
- MySQL/MariaDB: Network database support for multi-server setups
- PostgreSQL: Enterprise-grade database with advanced features
- Connection Pooling: High-performance HikariCP integration
? Screenshots
Discord Integration

Seamless Discord verification with interactive buttons
Admin Dashboard

Powerful admin tools accessible through Discord slash commands
Security Notifications

Real-time security notifications keep your account safe
Optimized Limbo world

? Installation
Prerequisites
- Velocity Proxy 3.4.0 or higher
- Java 21 or higher
- LimboAPI plugin (required dependency)
- Discord Bot (optional, for Discord features)
Step 1: Download and Install
- Download plugin JAR file
- Place the JAR file in your Velocity
plugins/folder - Install LimboAPI Place it in the same folder
- Restart your Velocity proxy
Step 2: Initial Configuration
- Navigate to
plugins/relishauth/ - Edit
config.ymlto configure your authentication method - Set up your database connection
- Configure Discord bot (optional but recommended)
Step 3: Discord Bot Setup (Optional)
- Create a Discord application at Discord Developer Portal
- Create a bot and copy the token
- Add the token to your
config.yml - Invite the bot to your Discord server with appropriate permissions
⚙️ Configuration
Basic Configuration
# Choose your authentication method
authentication:
method: "password" # Options: password, discord
premium-auto-login: true
allow-bedrock-players: true
# Session management
session:
duration: "5m" # Options: 0, 1m, 5m, 15m, 30m, 1h
allow-different-locations: true
# Database setup
database:
type: "sqlite" # Options: sqlite, mysql, mariadb, postgresql
sqlite:
path: "data.db"
Authentication Methods
? Password Authentication
Perfect for traditional servers wanting secure password-based auth:
authentication:
method: "password"
password:
min-length: 6
max-length: 32
hashing: "argon2" # Secure password hashing
How it works:
- New players create a password when first joining
- Returning players enter their password to authenticate
- Sessions are saved based on configured duration
- Optional Discord linking for additional features

? Discord Authentication
Ideal for Discord-centric communities:
authentication:
method: "discord"
discord:
bot-token: "YOUR_BOT_TOKEN"
# You can set a single guild ID:
# server-id: "YOUR_DISCORD_SERVER_ID"
# Or multiple guild IDs:
# server-id: ["GUILD_ID_1", "GUILD_ID_2"]
server-id: "YOUR_DISCORD_SERVER_ID"
How it works:
- Players enter their Discord username in-game
- Bot sends verification DM with interactive buttons
- Players click "Verify" to authenticate
- Account is permanently linked to Discord

? Premium Auto-Login
Streamlined experience for premium players:
authentication:
premium-auto-login: true
allow-premium-username-impersonation: false # Security: prevent impersonation
How it works:
- Premium accounts are automatically verified via Mojang API
- No password or Discord verification required
- Instant server access for legitimate premium players
- Cracked clients cannot impersonate premium accounts

Security Configuration
security:
authentication-timeout: 300 # 5 minutes to authenticate
password-attempts:
max-attempts: 3
lock-duration: 15 # Minutes
premium:
verification-timeout: 5
api-url: "https://api.mojang.com/users/profiles/minecraft/"
Limbo Authentication UI
customization:
limbo:
title:
enabled: true
actionbar:
enabled: true
bossbar:
enabled: true
color: "BLUE"
overlay: "PROGRESS"
RelishAuth now keeps the auth limbo world behavior hardcoded for stability. Movement clamping and the auth world layout are no longer configurable.
? Commands
Player Commands
| Command | Description | Usage |
|---|---|---|
/ra password <pass> <confirm> |
Set/change password | /ra password mypass123 mypass123 |
/ra discord <username> |
Link Discord account | /ra discord john_doe |
/ra logout |
Clear all sessions | /ra logout |
/ra session [duration] |
Set session duration | /ra session 30m |
/ra notify <on/off> |
Toggle join notifications | /ra notify on |
/ra unlink |
Unlink Discord account | /ra unlink |
/ra info |
View account information | /ra info |
Admin Commands
| Command | Description | Usage |
|---|---|---|
/ra reload |
Reload configuration | /ra reload |
/ra info <player> |
View player information | /ra info PlayerName |
/ra unlink <player> |
Unlink player's Discord | /ra unlink PlayerName |
/ra block <username> <ip> |
Block username from IP | /ra block Griefer 192.168.1.1 |
/ra unblock <username> <from> |
Unblock username from IP | /ra unblock Griefer 192.168.1.1 |
/ra clearblocks <username> |
Clear all stored blocks for username | /ra clearblocks Griefer |
/ra setpassword <player> <new> <confirm> |
Admin set a player's password | /ra setpassword PlayerName NewPass NewPass |
/ra resetpassword <player> [length] |
Admin reset password (temp password) | /ra resetpassword PlayerName 16 |
? Discord Bot Integration
Setup Process
-
Create Discord Application
- Go to Discord Developer Portal
- Click "New Application" and give it a name
- Navigate to "Bot" section and create a bot
-
Configure Bot Permissions Required permissions:
- Send Messages
- Use Slash Commands
- Manage Roles (for linked role)
- Read Message History
-
Invite Bot to Server
https://discord.com/api/oauth2/authorize?client_id=YOUR_BOT_ID&permissions=268435456&scope=bot%20applications.commands -
Configure in RelishAuth
discord: bot-token: "YOUR_BOT_TOKEN" # You can set a single guild ID: # server-id: "YOUR_DISCORD_SERVER_ID" # Or multiple guild IDs: # server-id: ["GUILD_ID_1", "GUILD_ID_2"] server-id: "YOUR_DISCORD_SERVER_ID" linked-role-id: "ROLE_ID_FOR_LINKED_USERS"
Discord Slash Commands
| Command | Description | Permission |
|---|---|---|
/link |
Instructions for linking account | Everyone |
/session [duration] |
Set session duration | Linked users |
/notifications [toggle] |
Toggle join notifications | Linked users |
/info [player] |
View account information | Admin |
/kick <player> |
Kick player from server | Admin |
/unlink <player> |
Unlink player's account | Admin |
/block <username> <ip> |
Block username from IP | Admin |
/unblock <username> <from> |
Unblock username from IP | Admin |
/clearblocks <username> |
Clear all stored blocks for username | Admin |
/setpassword <player> <new> <confirm> |
Admin set a player's password | Admin |
/resetpassword <player> [length] |
Admin reset password (temp password) | Admin |
/reload |
Reload plugin configuration | Admin |
? Support & Links
Made with ❤️ by M5LB
下载 RelishAuth
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 RelishAuth
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 RelishAuth
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 RelishAuth
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 RelishAuth
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 RelishAuth
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 RelishAuth
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 RelishAuth
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 RelishAuth
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 RelishAuth
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
暂无更新日志
关于这个资源的讨论、问题反馈与使用心得
还没有讨论,来发第一帖吧
你是这个资源的作者?登录后可认领此资源。
相似资源
插件
PacketEvents 是一款专为 Minecraft Java 版打造的协议库,旨在简化数据包的处理与传输。
插件
ExyliaPlugins 的库。
插件
通过对话框或铁砧界面帮助你的 Anthme
插件
自定义你的Minecraft头像!
插件
重新定义服务器上的生物运输方式。使用高度可定制的口袋道具,安全地捕获、存储和释放任何实体。
插件
为基于 Spigot/Paper/Folia 的服务器添加对 Vivecraft 的支持
评论 0
登录后参与评分
还没有评论,来抢沙发吧