本项目是一个用于 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
你可以在配置文件中直接自定义所有命令、权限和其他设置,以满足服务器的需求。
你是这个资源的作者?登录后可认领此资源。
相似资源
PacketEvents 是一款专为 Minecraft Java 版打造的协议库,旨在简化数据包的处理与传输。
ExyliaPlugins 的库。
通过对话框或铁砧界面帮助你的 Anthme
重新定义服务器上的生物运输方式。使用高度可定制的口袋道具,安全地捕获、存储和释放任何实体。
为基于 Spigot/Paper/Folia 的服务器添加对 Vivecraft 的支持
一个在游戏内运行的 Minecraft 地图编辑器! 支持选区、蓝图、复制粘贴、笔刷和脚本。 可在创造模式中使用,也可在生存模式中临时使用。
评论 0
登录后参与评分
还没有评论,来抢沙发吧