exaroton 代理插件
一款旨在让你的代理网络使用 exaroton 服务器的代理插件。
该插件会自动更新你代理中的 exaroton 服务器,并允许你管理它们。
还支持在非 exaroton 运行但使用 exaroton 服务器的代理上安装此插件。
关于 exaroton
exaroton 提供高端按需游戏服务器。这对于代理网络非常有用,因为你可以关闭当前未使用的服务器以节省资金,并在需要时自动启动它们。
命令
该插件提供了 /exaroton 命令,具有以下子命令:
| 命令 | 参数 | 描述 | 权限节点 |
|---|---|---|---|
| start | <server> | 启动服务器,并在其上线时自动将其添加到网络中 | exaroton.start |
| stop | <server> | 从代理中移除服务器并停止它 | exaroton.stop |
| restart | <server> | 重启服务器 | exaroton.restart |
| add | <server> | 将已在线的服务器添加到你的代理中 | exaroton.add |
| remove | <server> | 从你的代理中移除服务器 | exaroton.remove |
| switch | <server> [<players>] | 启动服务器(如果需要)并将选定的玩家转移至其中。如果未指定玩家,则执行命令的玩家将被转移。 | exaroton.switch |
权限
默认情况下,玩家无法使用这些命令。你可以通过赋予他们所需的权限节点来让玩家访问这些命令。所有命令都需要 exaroton 权限节点。
配置
由于此插件使用 exaroton API 来管理服务器,你需要提供一个 API 令牌,可以在 获取。你还可以配置此插件在代理启动时同时启动服务器(例如用于主大厅),并在代理停止时停止服务器。
还可以禁用“监控服务器”功能,该功能会在服务器离线时自动将其从代理中移除。
默认配置
# exaroton API 令牌。你可以在 https://exaroton.com/account/ 生成此令牌
apiToken = 'example-token'
# 监控代理配置中的服务器,并在其离线时自动移除它们
# 注意,这仅在使用 .exaroton.me 地址作为 Velocity 配置时才有效。
watchServers = true
# 代理启动时自动启动服务器
[autoStartServers]
enabled = false
servers = ["example.exaroton.me"]
# 代理停止时自动停止服务器
[autoStopServers]
enabled = false
servers = ["example.exaroton.me"]
Bukkit 插件
Bukkit 插件通过插件消息将后端服务器上的命令转发到代理。这使得可以在命令方块或其他插件(例如 NPC 插件)中使用这些命令。
由于插件消息是通过玩家连接发送的,因此至少需要一名玩家连接到后端服务器。如果某个代理缺少此插件,玩家可能会看到原本会执行的命令。
选择器如 @a、@p 和 @r 将在后端服务器上自动替换。因此,@a 指的是后端服务器上的所有玩家,而不是代理上的所有玩家。这些选择器不直接支持在代理上使用。
使用多个代理
由于此插件不同步代理服务器之间的状态,当你尝试将其与多个代理一起使用时,存在一些限制。使用 /exaroton start <server> 启动服务器只会将服务器添加到你当前连接的代理中。停止/重启操作跨代理有效,前提是所有的代理都安装了该插件,因为它们会在服务器不再在线时自动移除它,并在其重新上线时自动添加回来。
如果你打算用于代理的所有服务器都已经包含在你的代理配置中,那么跨代理启动服务器也应该可以正常工作,因为其他代理已经在监控该服务器的状态。
exaroton Proxy Plugin
A proxy plugin designed to use exaroton servers in your proxy network.
This plugin automatically updates exaroton servers in your proxy and allows you to manage them.
Installing this plugin on proxies that do not run on exaroton but use exaroton servers is also supported.
About exaroton
exaroton provides high-end on demand game servers. This is very useful for proxy networks as you can turn off servers which aren't used right now to save money and start them automatically when you need them.
Commands
The Plugin provides the /exaroton command with the following subcommands:
| Command | Arguments | Description | Permission Node |
|---|---|---|---|
| start | <server> | Start a server and automatically add it to the network when it goes online | exaroton.start |
| stop | <server> | Remove a server from the proxy and stop it | exaroton.stop |
| restart | <server> | Restart a server | exaroton.restart |
| add | <server> | Add a server that's already online to your proxy | exaroton.add |
| remove | <server> | Remove a server from your proxy | exaroton.remove |
| switch | <server> [<players>] | Start a server (if needed) and transfer the selected players to it. If no players are specified the player who executed the command will be transferred. | exaroton.switch |
Permissions
Commands are not available to players by default. You can give players access to the commands by giving them the
required permission nodes. The exaroton permission node is required for all commands.
Configuration
Since this plugin uses the exaroton API to manage servers, you need to provide an API token, which can be obtained on . You can also configure this plugin to start servers alongside your proxy (e.g. for your main lobby) and stop servers when the proxy stops.
It's also possible to disable the watch servers feature which automatically removes servers from the proxy when they go offline.
Default configuration
# exaroton API token. You can generate this on https://exaroton.com/account/
apiToken = 'example-token'
# Watch servers in the proxy config and automatically remove them when they go offline
# Note that this only works if you use .exaroton.me addresses in your velocity config.
watchServers = true
# Automatically start servers when the proxy starts
[autoStartServers]
enabled = false
servers = ["example.exaroton.me"]
# Automatically stop servers when the proxy stops
[autoStopServers]
enabled = false
servers = ["example.exaroton.me"]
Bukkit plugin
The bukkit plugin forwards commands from your backend servers to the proxy using plugin messages. This makes it possible to use these commands in command blocks or other plugins (e.g. for NPCs).
Since plugin messages are sent using a player connection, at least one player has to be connected to the backend server. If the plugin is missing from one of your proxies, the player could read the command that would have been executed.
Selectors like @a, @p and @r will automatically be replaced on the backend server. @a therefore refers to all players on the backend server, not all players on the proxy. These selectors are not supported on the proxy directly.
Using multiple Proxies
Since this plugin does not synchronize the proxy servers with each other, there are some limitations when you try to
use it with multiple proxies. Starting a server using /exaroton start <server> only adds the server to the proxy you
are connected to right now. Stopping/Restarting works across proxies, assuming that all proxies have the plugin
installed as they will automatically remove the server when it is no longer online and will automatically add it back
once it comes back online.
If all servers you intend to use with the proxy are already in your proxy configuration, starting a server should also work across proxies because the other proxies are already watching the status of this server.
下载 exaroton
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 exaroton
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 exaroton
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 exaroton
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 exaroton
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 exaroton
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 exaroton
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 exaroton
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 exaroton
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 exaroton
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
v2.0.6
- 修复服务器列表缓存问题
v2.0.5
- 修复版本号显示错误
v2.0.4
- 修复初始 WebSocket 连接失败时的重试机制
v2.0.3
- 修复 Stop 命令
- 支持 List 1.21.8
v2.0.2
- 支持 List 1.21.5、1.21.6 和 1.21.7
v2.0.1
- 在使用 Velocity 的现代转发功能时,Bukkit 插件不再拒绝加载
- 代理名称现在也会作为服务器参数建议提供
v2.0.0
破坏性变更
- 此插件现要求 Java 11 或更高版本
- 所有平台现在均使用 TOML 配置文件,部分选项的名称已更改。旧配置文件将自动迁移。
- 为其他插件提供的 API 已被移除。如果您曾使用该 API,请通过反馈告诉我们您的使用方式,以便我们开发替代方案。
新增内容
- 新增 Bukkit 集成,通过插件消息转发命令。这允许在命令方块和 NPC 中使用 exaroton 命令。更多详情请参阅 README。
- 请求现已异步执行,这将提升性能
关于这个资源的讨论、问题反馈与使用心得
还没有讨论,来发第一帖吧
你是这个资源的作者?登录后可认领此资源。
相似资源
插件
PacketEvents 是一款专为 Minecraft Java 版打造的协议库,旨在简化数据包的处理与传输。
插件
ExyliaPlugins 的库。
插件
通过对话框或铁砧界面帮助你的 Anthme
插件
重新定义服务器上的生物运输方式。使用高度可定制的口袋道具,安全地捕获、存储和释放任何实体。
插件
为基于 Spigot/Paper/Folia 的服务器添加对 Vivecraft 的支持
插件
用于绘制游戏内地图或在浏览器中随探索实时进行地图绘制的实时地图。
评论 0
登录后参与评分
还没有评论,来抢沙发吧