本项目是一个用于 Velocity 代理服务器 的 Hub 插件。它会根据权限、服务器负载和其他条件,自动将玩家连接到最佳可用的大厅服务器。该插件包含高级调试功能,并允许通过配置文件进行全面自定义。
功能
- 自动服务器选择:自动将玩家连接到最佳可用的大厅服务器。
- 多个大厅:支持多种类型的大厅,每个大厅都有独立的权限和优先级。
- 可自定义消息:成功消息和系统通知可以使用 MiniMessage 语法完全自定义。
- 动态命令:针对不同大厅提供完全可自定义的命令和权限。
- 调试模式:启用调试模式以通过详细消息排查问题。
- 占位符支持:支持用于服务器和玩家信息的占位符。
安装
-
要求:
- Velocity 代理服务器(最新版本)
- Java 21
-
插件下载:
-
安装:
- 将 JAR 文件放入 Velocity 服务器的
plugins目录中。
- 将 JAR 文件放入 Velocity 服务器的
-
重启服务器:
- 重启 Velocity 服务器以加载插件。
配置
服务器首次启动后,会在插件目录中生成一个 config.yml 文件。该文件允许全面自定义,包括命令、权限、消息和服务器行为。你可以根据服务器需求调整所有内容。
MiniMessage 和正则表达式支持
该插件支持 MiniMessage 语法来自定义消息。你可以使用 <i>、<b> 和 <color> 等 MiniMessage 标签轻松美化消息。如需快速预览或测试你的 MiniMessage 字符串,请访问 MiniMessage 网页编辑器。
对于自定义服务器过滤器和其他模式,支持 Regex(正则表达式)。你可以使用 Regex 编辑器 轻松测试你的表达式。
示例配置
messages:
success-message: <#69d9ff>You are now in the <i>Hub</i>.
already-connected-message: <#ff614d>You are already on the <i>Hub</i>.
connection-in-progress-message: <#ff9c59>In Progress...
server-disconnected-message: <#ff614d>The Lobby Server is Offline...
connection-cancelled-message: <#ff614d>Transfer cancelled.
system-messages:
players-only-command-message: <#ff9c59>This Command is only available to Players.
no-lobby-found-message: <#ff9c59>I'm sorry! I was unable to find a Lobby Server for you.
aliases:
- lobby
- leave
base-hub-command: hub
debug:
enabled: true
permission: hub.debug
lobbies:
- name: teamlobby
filter: (?i)^teamlobby.*
permission: hub.team
priority: 2
commands:
teamlobby:
standalone: false
subcommand: true
autojoin: false
- name: premiumlobby
filter: (?i)^premiumlobby.*
permission: ''
priority: 1
commands:
premiumlobby:
standalone: true
subcommand: false
autojoin: true
overwrite-messages:
success-message: <#69d9ff>You are now in the <b>Premium Hub</b>.
- name: lobby
filter: (?i)^lobby.*
permission: ''
priority: 0
commands:
base:
standalone: false
subcommand: true
autojoin: true
placeholder:
server:
enabled: true
lobby:
enabled: true
player:
enabled: true
auto-select:
on-join: true
on-server-kick: true
ping-duration-in-millis: 20
finder:
start-duration: 20
increment-duration: 20
max-duration: 200
你可以在配置文件中直接自定义所有命令、权限和其他设置,以满足服务器的需求。
This project is a Hub Plugin for the Velocity Proxy Server. It automatically connects players to the best available lobby servers based on permissions, server load, and other criteria. The plugin includes advanced debugging features and offers full customization through a configuration file.
Features
- Automatic Server Selection: Automatically connects players to the best available lobby server.
- Multiple Lobbies: Supports multiple lobby types with individual permissions and priorities.
- Customizable Messages: Success messages and system notifications can be fully customized using MiniMessage syntax.
- Dynamic Commands: Fully customizable commands and permissions for different lobbies.
- Debugging Mode: Enable debug mode to troubleshoot issues with detailed messages.
- Placeholder Support: Supports placeholders for server and player information.
Installation
-
Requirements:
- Velocity Proxy Server (latest version)
- Java 21
-
Plugin Download:
-
Installation:
- Place the JAR file in the
pluginsdirectory of your Velocity server.
- Place the JAR file in the
-
Restart the Server:
- Restart your Velocity server to load the plugin.
Configuration
After the server's first start, a config.yml file will be generated in the plugin directory. This file allows full
customization, including commands, permissions, messages, and server behaviors. You can adjust everything to meet your
server's needs.
MiniMessage and Regex Support
The plugin supports MiniMessage syntax for customizing messages. You can easily style your messages using
MiniMessage tags like <i>, <b>, and <color>. For a quick preview or to test your MiniMessage strings, visit
the MiniMessage web editor.
For custom server filters and other patterns, Regex is supported. Test your expressions easily with a Regex editor.
Example Configuration
messages:
success-message: <#69d9ff>You are now in the <i>Hub</i>.
already-connected-message: <#ff614d>You are already on the <i>Hub</i>.
connection-in-progress-message: <#ff9c59>In Progress...
server-disconnected-message: <#ff614d>The Lobby Server is Offline...
connection-cancelled-message: <#ff614d>Transfer cancelled.
system-messages:
players-only-command-message: <#ff9c59>This Command is only available to Players.
no-lobby-found-message: <#ff9c59>I'm sorry! I was unable to find a Lobby Server for you.
aliases:
- lobby
- leave
base-hub-command: hub
debug:
enabled: true
permission: hub.debug
lobbies:
- name: teamlobby
filter: (?i)^teamlobby.*
permission: hub.team
priority: 2
commands:
teamlobby:
standalone: false
subcommand: true
autojoin: false
- name: premiumlobby
filter: (?i)^premiumlobby.*
permission: ''
priority: 1
commands:
premiumlobby:
standalone: true
subcommand: false
autojoin: true
overwrite-messages:
success-message: <#69d9ff>You are now in the <b>Premium Hub</b>.
- name: lobby
filter: (?i)^lobby.*
permission: ''
priority: 0
commands:
base:
standalone: false
subcommand: true
autojoin: true
placeholder:
server:
enabled: true
lobby:
enabled: true
player:
enabled: true
auto-select:
on-join: true
on-server-kick: true
ping-duration-in-millis: 20
finder:
start-duration: 20
increment-duration: 20
max-duration: 200
You can customize all commands, permissions, and other settings directly in the configuration file to suit your server's requirements.
下载 HUB
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 HUB
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 HUB
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 HUB
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 HUB
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 HUB
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 HUB
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 HUB
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
完整更新日志:
关于这个资源的讨论、问题反馈与使用心得
还没有讨论,来发第一帖吧
你是这个资源的作者?登录后可认领此资源。
相似资源
插件
PacketEvents 是一款专为 Minecraft Java 版打造的协议库,旨在简化数据包的处理与传输。
插件
ExyliaPlugins 的库。
插件
通过对话框或铁砧界面帮助你的 Anthme
插件
重新定义服务器上的生物运输方式。使用高度可定制的口袋道具,安全地捕获、存储和释放任何实体。
插件
为基于 Spigot/Paper/Folia 的服务器添加对 Vivecraft 的支持
插件
用于绘制游戏内地图或在浏览器中随探索实时进行地图绘制的实时地图。
评论 0
登录后参与评分
还没有评论,来抢沙发吧