? DomainRouter
一款面向 Velocity 的现代高性能代理路由与网络管理插件。DomainRouter 允许你根据玩家连接时使用的特定域名或 IP 地址,无缝地将入站玩家路由到不同的后端服务器,同时让你完全掌控网络的“第一印象”。非常适合用于服务器网络、大厅系统或多品牌 Minecraft 部署。
✨ 功能(v1.3 重大更新)
- 基于域名的路由 – 根据玩家的连接地址,立即将其定向到特定的后端服务器(例如:生存、大厅、PVP)。
- 高级维护模式 – 通过一个开关即可关闭对公众的网络访问。支持自定义协议文本、自定义多行踢出消息,以及通过昵称或 UUID 的玩家白名单/绕过系统。
- 智能回退与多服务器重定向 – 防止玩家被从整个代理中踢出!如果某个子服务器崩溃或关闭,DomainRouter 会自动将玩家路由到指定的备用服务器。
- 按域名的动态 MOTD 与图标 – 根据使用的域名,提供独特的服务器列表描述和自定义
.png图标/favicons。 - MiniMessage 与传统格式支持 – 精美地展示你的品牌形象。在 MOTD 和踢出界面中全面支持现代 RGB 渐变、HEX 颜色代码以及传统格式符(
&)。 - 隔离的在线人数统计 – 配置特定域名仅统计并显示来自选定后端实例的玩家数量,而不是显示整个代理的总在线人数。
- 自动本地化系统 – 插件在首次启动时会自动生成完整的语言模板文件(
en.yml和cz.yml)。
? 示例路由
survival.example.com➔ 生存服务器bedwars.example.com➔ 床 Wars 服务器event.example.com➔ 活动服务器
⚙️ 配置
点击查看自动生成 config.yml (v7)
# ================================================================= #
# DOMAINROUTER CONFIGURATION #
# ================================================================= #
lang: "en"
debug: true
# Default server where the proxy sends players if the domain has no specific route
default-fallback-server: "lobby"
# --- ROUTES ---
# Mapping of domains used by players to specific starting servers
routes:
mc.example.com: "lobby"
survival.example.com: "survival"
pvp.example.com: "pvp"
# --- MAINTENANCE MODE ---
maintenance:
enabled: false # true = enables global proxy maintenance / false = disabled
protocol-text: "§cMaintenance"
# Custom kick message for players trying to join during maintenance
kick-message: "&8[&4Maintenance&8]\n\n&cThe entire network is currently undergoing scheduled maintenance!\n&7Check our Discord for more info.\n\n&6Updating network to version 1.3..."
# Players with a bypass to join during active maintenance (Nick or UUID)
allowed-players:
- "KuklincYT"
# MOTD shown in the server list when maintenance is active
motd:
- "<gradient:#8a2be2:#da70d6><bold>EXAMPLE NETWORK</bold></gradient> <gray>•</gray> &cMAINTENANCE\n&7We are currently performing a massive proxy update!"
# --- DYNAMIC MOTD PER DOMAIN ---
domains:
mc.example.com:
icon: "server-icon.png"
max-players: 1000
# Sums online players only from defined servers (if missing, sums the whole proxy)
player-counting-servers:
- "lobby"
- "survival"
# List of MOTDs for this domain (plugin picks randomly if multiple exist)
motds:
- "<gradient:#8a2be2:#da70d6><bold>Example Network</bold></gradient> <gray>•</gray> <white>1.19 - 1.21</white>\n&aThe new Survival season has started!"
- "<gradient:#8a2be2:#da70d6><bold>Example Network</bold></gradient> <gray>•</gray> <white>News</white>\n&eJoin and claim your rewards in the lobby!"
pvp.example.com:
icon: "pvp-icon.png"
max-players: 150
player-counting-servers:
- "pvp"
motds:
- "&c&lPVP ARENA\n&7Come test your combat skills!"
# Default MOTD if someone connects via an unconfigured subdomain
default:
icon: "default.png"
max-players: 500
motds:
- "&8[&dExample Network&8]\n&fYou have connected via a backup domain."
# --- FALLBACKS AND KICKS ---
# When a server on the left goes offline, players are sent to the right (instead of being kicked from proxy)
server-fallbacks:
survival: "lobby"
skyblock: "lobby"
# List of servers from which players are completely kicked off the proxy when they shut down
kick-servers:
- "pvp"
- "minigames"
# Custom message for kick / disconnect from a server on the fly
kick-message: "&8[&dExample Network&8]\n\n&aServer &d%server% &ais currently offline.\n&8>> &aMoving you to the main lobby... &8<<"
# --- CONFIG METADATA ---
config-version: 7
plugin-version: "1.3"
? 额外翻译与自定义语言
为了确保 100% 的完整性和专业质量,你可以直接从我们的仓库工作区查找并下载额外的语言文件:
➔ 下载官方额外翻译
使用方法:
-
下载你需要的语言文件(例如
de.yml、es.yml),链接见上方。 -
将文件上传到你的代理文件夹中,路径为:
plugins/DomainRouter/languages/ -
更新主配置文件
config.yml中的lang选项,使其与文件名匹配(例如lang: de)。 -
运行
/domainrouter reload以应用更改。
? 注意: 你可以完全修改和调整任何下载的语言文件,使其更符合你的网络风格!
⚡ 专为希望实现专业服务器路由而不需要复杂设置的 Minecraft 网络打造。
?️ 该插件正在积极开发中,未来将持续添加新功能并进行改进。
? DomainRouter
A modern, high-performance proxy routing and network management plugin for Velocity. DomainRouter allows you to seamlessly route incoming players to different backend servers based on the specific domain or IP address they use to connect, while giving you complete control over your network's first impression. Perfect for server networks, lobby systems, or multi-brand Minecraft setups.
✨ Features (Major Update v1.3)
- Domain-Based Routing – Direct players instantly to specific backend servers (e.g., Survival, Lobby, PvP) depending on their connection address.
- Advanced Maintenance Mode – Shut down public access to your network with a single switch. Features a customizable protocol text, custom multi-line kick messages, and a player whitelist/bypass system via nicknames or UUIDs.
- Smart Fallback & Multi-Server Redirects – Prevent players from being disconnected from the entire proxy! If a sub-server crashes or shuts down, DomainRouter automatically routes them to a designated backup server.
- Per-Domain Dynamic MOTD & Icons – Deliver distinct server list descriptions and custom
.pngicons/favicons based on the domain used. - MiniMessage & Legacy Support – Express your brand beautifully. Full support for modern RGB gradients, HEX color codes, and legacy formatting (
&) across MOTDs and kick screens. - Isolated Player Counters – Configure specific domains to count and display players only from selected backend instances rather than displaying the total proxy count.
- Automated Localization System – The plugin now automatically generates complete local language template files (
en.ymlandcz.yml) on its very first launch.
? Example Routing
survival.example.com➔ Survival serverbedwars.example.com➔ BedWars serverevent.example.com➔ Event server
⚙️ Configuration
Click to view automatically generated config.yml (v7)
# ================================================================= #
# DOMAINROUTER CONFIGURATION #
# ================================================================= #
lang: "en"
debug: true
# Default server where the proxy sends players if the domain has no specific route
default-fallback-server: "lobby"
# --- ROUTES ---
# Mapping of domains used by players to specific starting servers
routes:
mc.example.com: "lobby"
survival.example.com: "survival"
pvp.example.com: "pvp"
# --- MAINTENANCE MODE ---
maintenance:
enabled: false # true = enables global proxy maintenance / false = disabled
protocol-text: "§cMaintenance"
# Custom kick message for players trying to join during maintenance
kick-message: "&8[&4Maintenance&8]\n\n&cThe entire network is currently undergoing scheduled maintenance!\n&7Check our Discord for more info.\n\n&6Updating network to version 1.3..."
# Players with a bypass to join during active maintenance (Nick or UUID)
allowed-players:
- "KuklincYT"
# MOTD shown in the server list when maintenance is active
motd:
- "<gradient:#8a2be2:#da70d6><bold>EXAMPLE NETWORK</bold></gradient> <gray>•</gray> &cMAINTENANCE\n&7We are currently performing a massive proxy update!"
# --- DYNAMIC MOTD PER DOMAIN ---
domains:
mc.example.com:
icon: "server-icon.png"
max-players: 1000
# Sums online players only from defined servers (if missing, sums the whole proxy)
player-counting-servers:
- "lobby"
- "survival"
# List of MOTDs for this domain (plugin picks randomly if multiple exist)
motds:
- "<gradient:#8a2be2:#da70d6><bold>Example Network</bold></gradient> <gray>•</gray> <white>1.19 - 1.21</white>\n&aThe new Survival season has started!"
- "<gradient:#8a2be2:#da70d6><bold>Example Network</bold></gradient> <gray>•</gray> <white>News</white>\n&eJoin and claim your rewards in the lobby!"
pvp.example.com:
icon: "pvp-icon.png"
max-players: 150
player-counting-servers:
- "pvp"
motds:
- "&c&lPVP ARENA\n&7Come test your combat skills!"
# Default MOTD if someone connects via an unconfigured subdomain
default:
icon: "default.png"
max-players: 500
motds:
- "&8[&dExample Network&8]\n&fYou have connected via a backup domain."
# --- FALLBACKS AND KICKS ---
# When a server on the left goes offline, players are sent to the right (instead of being kicked from proxy)
server-fallbacks:
survival: "lobby"
skyblock: "lobby"
# List of servers from which players are completely kicked off the proxy when they shut down
kick-servers:
- "pvp"
- "minigames"
# Custom message for kick / disconnect from a server on the fly
kick-message: "&8[&dExample Network&8]\n\n&aServer &d%server% &ais currently offline.\n&8>> &aMoving you to the main lobby... &8<<"
# --- CONFIG METADATA ---
config-version: 7
plugin-version: "1.3"
? Extra Translations & Custom Languages
To ensure 100% completeness and professional quality, you can find and download additional language files directly from our repository workspace:
➔ Download Official Extra Translations
How to use them:
-
Download the language file you need (e.g.,
de.yml,es.yml) from the link above. -
Upload the file into your proxy folder at:
plugins/DomainRouter/languages/ -
Update the
langoption in your mainconfig.ymlto match the file name (e.g.,lang: de). -
Run
/domainrouter reloadto apply the changes.
? NOTE: You can fully modify and tweak any downloaded language file to better suit your network's style!
⚡ Perfect for Minecraft networks that want professional server routing without complicated setup.
?️ The plugin is actively being developed and will receive new features and improvements over time.
下载 Domain Router
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Domain Router
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Domain Router
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Domain Router
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Domain Router
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Domain Router
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Domain Router
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Domain Router
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Domain Router
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Domain Router
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
? DomainRouter v1.3.2
? 修复内容
- 修复了目标服务器踢出时断开原因的覆盖问题:
- 修复了一个问题:当玩家从目标服务器被踢出(例如,通过 Essentials 被封禁、不在白名单中或被工作人员踢出)时,原本会显示通用的
"Server is offline"消息,而不是实际的踢出/封禁原因。 DomainRouter现在能够正确检测下游服务器是否提供了明确的踢出原因,并将其直接传递给玩家。- 如果未提供原因(例如,服务器崩溃、网络超时),则使用自定义配置的消息作为回退方案。
- 修复了一个问题:当玩家从目标服务器被踢出(例如,通过 Essentials 被封禁、不在白名单中或被工作人员踢出)时,原本会显示通用的
? 技术变更
- Velocity: 更新了
KickedFromServerEvent的处理逻辑,在应用回退踢出/断开消息之前检查event.getServerKickReason()。 - BungeeCord: 更新了
ServerKickEvent的处理逻辑,检查event.getKickReasonComponent()并保留原始服务器组件结构。
? 支持的平台
- Velocity (
v1.3.2) - BungeeCord (
v1.3.2)
关于这个资源的讨论、问题反馈与使用心得
还没有讨论,来发第一帖吧
你是这个资源的作者?登录后可认领此资源。
相似资源
插件
PacketEvents 是一款专为 Minecraft Java 版打造的协议库,旨在简化数据包的处理与传输。
插件
ExyliaPlugins 的库。
插件
通过对话框或铁砧界面帮助你的 Anthme
插件
重新定义服务器上的生物运输方式。使用高度可定制的口袋道具,安全地捕获、存储和释放任何实体。
插件
为基于 Spigot/Paper/Folia 的服务器添加对 Vivecraft 的支持
插件
用于绘制游戏内地图或在浏览器中随探索实时进行地图绘制的实时地图。
评论 0
登录后参与评分
还没有评论,来抢沙发吧