Server Switcher
一款 Velocity 插件,为你的 Minecraft 网络提供基于权限的服务器切换系统。
功能
- 完全可配置的格式化服务器列表,支持 MiniMessage 格式
- 服务器分组
- 检测服务器的在线状态
- 通过权限控制玩家可访问以及在服务器列表中可见的服务器
命令
/server - 列出玩家有权访问的所有服务器
/server <server-name> - 将玩家切换到选定的服务器
/server reload - 重新加载插件配置文件
⚠️ 警告
强烈建议避免将服务器命名为 reload。这可能会导致拥有 serverswitcher.reload 权限的玩家产生冲突。
权限
| 权限 |
描述 |
serverswitcher.list |
使用 /server 命令的权限 |
serverswitcher.reload |
使用 /server reload 的权限 |
serverswitcher.server.<server-id> |
允许访问服务器 <server-id> |
serverswitcher.group.<group-id> |
允许访问组 <group-id> 中的所有服务器 |
serverswitcher.server.<server-id> 和 serverswitcher.group.<group-id> 可以在配置文件中可选地被自定义权限名称覆盖。
- 如果玩家没有访问某服务器的权限,默认情况下该服务器将对隐藏。若为某个组或服务器将配置值
alwaysShow 设置为 true,则该服务器将始终显示在列表中,但如果玩家在无权限的情况下尝试连接,将被拒绝访问。
⚠️ 警告
此插件不会阻止玩家停留在服务器上;它仅控制玩家是否能自行切换至该服务器。如果存在其他加入服务器的方式,玩家可能会绕过此限制。你可能还需要通过将 velocity.command.server 设置为 false 来防止玩家访问 Velocity 的服务器命令。
配置
有关可用选项,请参阅 config.toml 文件。
Server Switcher
A Velocity plugin that provides a permission-based server switching system for your Minecraft network.
Features
- Fully configurable formatted server list with MiniMessage support
- Grouping of servers
- Detection of online status of the server
- Permissions to control which servers players can access and see in the server list
Commands
/server - Lists all servers the player has access to
/server <server-name> - Switches the player to the selected server
/server reload - Reloads the plugin configuration file
⚠️ Warning
It is strongly advised to avoid naming a server reload. Doing so will likely cause a conflict for players with the serverswitcher.reload permission.
Permissions
| Permission |
Description |
serverswitcher.list |
Access to the /server command |
serverswitcher.reload |
Access to /server reload |
serverswitcher.server.<server-id> |
Allows access to the server <server-id> |
serverswitcher.group.<group-id> |
Allows access to all servers in the group <group-id> |
serverswitcher.server.<server-id> and serverswitcher.group.<group-id> can optionally be overriden with custom permission names in the config file.
- If a player does not have permission to access a server the server will be hidden from them by default. Setting the config value
alwaysShow to true for a group or server, the server will always show up in the listing, but the player will be denied access if they attempt to connect while not having the permissions.
⚠️ Warning
This plugin does not prevent a player from being on a server; it only controls whether they can switch there themselves. If there are other ways to join a server, they may bypass this restriction. You might also want to prevent access to the Velocity server command by setting velocity.command.server to false.
Config
See the config.toml file for available options.
评论 0
登录后参与评分
还没有评论,来抢沙发吧