FallbackRouter 是一款 Velocity 代理插件,通过在当前服务器宕机或重启时将用户重定向到预定义的备用服务器,确保玩家体验流畅。它防止了断连和挫败感——特别是在大型网络或基于大厅的系统中。
✅ 功能
? 自动备用处理
检测玩家被后端服务器踢出的情况,并将其重定向到最近的预定义备用服务器。
? 多语言支持
YAML 格式的语言文件(目前包含 EN 和 DE)。可通过自定义翻译轻松扩展。
⚙️ 完全通过 config.yml 配置
为每个服务器定义备用链
选择默认语言
? 错误处理
连接前进行 Ping 检查
延迟重试逻辑,给予服务器启动时间
? 示例配置
language: "en"
fallbacks:
smp:
- smpfb
- lobby
prac:
- pracfb
? 语言示例 (en.yml)
fallback:
kicked: "You were kicked from %server%. Trying fallback..."
all_offline: "All fallback servers are offline."
connected: "Successfully connected to %target%."
? 安装
从 Modrinth 页面下载最新的 .jar 文件,或使用 Maven 自行构建
将其放入 Velocity 代理的 plugins/ 文件夹中
启动一次代理以生成 config.yml 和语言文件
自定义 config.yml,并可选地翻译 lang/ 中的语言文件
?? 开源
此插件完全开源,采用 MIT 许可证。
欢迎 Fork、扩展并分享改进!
FallbackRouter is a Velocity proxy plugin that ensures a smooth player experience by redirecting users to predefined fallback servers when their current server goes down or restarts. It prevents disconnects and frustration – especially in large networks or lobby-based systems.
✅ Features
? Automatic Fallback Handling
Detects when a player is kicked by a backend server and redirects them to the nearest predefined fallback server.
? Multilingualism
Language files in YAML format (currently including EN and DE). Easily extendable with custom translations.
⚙️ Fully configurable via config.yml
Define fallback chains per server
Select a default language
? Error Handling
Ping checks before connecting
Delayed retry logic to give servers time to start
? Example Configuration
language: "en"
fallbacks:
smp:
- smpfb
- lobby
prac:
- pracfb
? Language Example (en.yml)
fallback:
kicked: "You were kicked from %server%. Trying fallback..."
all_offline: "All fallback servers are offline."
connected: "Successfully connected to %target%."
? Installation
Download the latest .jar from the Modrinth page or build it yourself using Maven
Place it in your plugins/ folder on your Velocity proxy
Start the proxy once to generate config.yml and language files
Customize config.yml and optionally translate the language files in lang/
?? Open Source
This plugin is fully open-source and MIT licensed.
You are welcome to fork, extend, and share improvements!
评论 0
登录后参与评分
还没有评论,来抢沙发吧