Velocity/hub
本插件专为运行 Velocity 的网络设计,允许玩家使用 /hub 命令返回大厅。
可配置的大厅服务器列表将按顺序检查,并使用列表中第一个可用的服务器来转移玩家。
拥有额外权限时,可以通过 /hub <Player> 命令将其他玩家转移到客厅。
权限
为了防止滥用 /hub 命令,我们设置了以下权限。
vhub.command.hub
此权限保护 /hub 命令的基础功能。
vhub.command.hub.others
此权限保护 /hub <Player> 命令。
若要让玩家使用指令将其他玩家传送至大厅,需同时拥有本权限与基础权限。
配置
该插件提供了一个 JSON 格式的配置文件。
其中内容为服务器名称列表,这些服务器即为你的大厅。
当尝试连接到大厅时,插件会选择第一个可用的服务器,并将目标玩家传送过去。
依赖
本插件需要 Kotlin 1.8.21 库的支持,我们推荐使用 MCKotlin,因为它同样支持 Velocity。
当然,您也可以自由使用其他任何受支持的 Kotlin 库提供商!
玩得开心
欢迎在您的 Velocity 服务器上使用此插件!
Velocity/hub
This plugin, written for networks running velocity, adds the ability for users, to use the /hub command, to return to the lobby.
The available servers for lobbies are configurable, and the first available server on the list will be used to transfer players to it.
With additional permissions, it is possible, to transfer other players to the lobby, using the /hub <Player> command.
Permissions
To protect the unappropriated use of the /hub command, we have set some permissions.
vhub.command.hub
This permission protects the whole base of the /hub command.
vhub.command.hub.others
This permission protects the /hub <Player> command.
For the use to send other players to the hub, both, this and the base permission are required at the same time.
Configuration
This plugin provides a configuration file in the json format.
The content is the list of server names, which are your lobby.
On trying to connect to the lobby, the plugin picks the first available server and sends the target player to it.
Dependencies
This plugin requires the availability of the Kotlin 1.8.21 library, we recommend using the MCKotlin because it supports Velocity as well.
But you are free to use any other platform supported Kotlin library provider as well!
Have fun
You are welcome to use the plugin on your velocity server!
评论 0
登录后参与评分
还没有评论,来抢沙发吧