Impulse
Impulse 是一个用于 Minecraft 服务器代理 Velocity 的插件。它允许根据玩家的加入和离开动态启动和停止服务器。为什么要运行一个每天只使用几小时的服务器呢?
主要特性
Impulse 拥有众多功能,让管理你的服务器变得轻松!一些亮点包括:
- 动态创建和销毁服务器 - 仅在玩家连接时运行服务器
- 第一方和第三方 Broker - 无论服务器如何部署(通过 Docker、JAR 文件或其他方式),都有相应的核心来驱动你的服务器。我们正积极致力于扩展我们的选择范围,但你可以在此处找到完整列表 here
- 自动热重载配置 - 无需重新加载命令即可自动更新 Impulse 运行服务器的方式!
- 非托管服务器支持 - 与你在 Velocity 中配置的任何静态服务器良好兼容
- 自定义事件 - 广播允许你扩展 Impulse 功能的自定义事件
- 第三方 Broker 支持 - 实现你自己的 Broker 或使用他人的来管理你的服务器
- FOSS(自由开源软件) - Impulse 承诺始终免费且开源
如需了解有关如何使用 Impulse 的更详细信息,请参阅我们的 文档。
API 文档请参见我们的 KDocs。
安装
简而言之,从我们的任意下载源下载最新版本,并将其放入 Velocity 插件文件夹中。更多详细说明请参阅我们的 安装 指南。
下载源:
快速入门
[!TIP]
寻找更深入的使用指南?请参阅我们的 入门
文档。
以下配置将帮助您快速启动一个简单的大厅服务器。
步骤 1:配置 Velocity
只需像平常一样将服务器添加到您的 velocity 配置文件中即可。
player-info-forwarding = "modern"
[servers]
lobby = "127.0.0.1:25566"
try = ["lobby"]
步骤 2:配置 Impulse
配置 Impulse 以使其知道如何管理您的服务器
instanceName: Bones
servers:
- name: lobby
inactiveTimeout: 300
type: docker
docker:
image: itzg/minecraft-server
portBindings:
- "25566:25565"
env:
ONLINE_MODE: "FALSE"
TYPE: "FABRIC"
EULA: "TRUE"
MODRINTH_PROJECTS: "fabricproxy-lite"
DIFFICULTY: "PEACEFUL"
ALLOW_NETHER: "FALSE"
MODE: "adventure"
volumes:
- "/srv/lobby:/data"
步骤 3:配置 MC 服务器
添加一些配置以允许现代转发
# create the file /srv/lobby/config/FabricProxy-Lite.toml
hackOnlineMode = true
hackEarlySend = false
hackMessageChain = true
disconnectMessage = "This server requires you to connect through the proxy."
secret = "<YOUR SECRET FROM forwarding.secret FILE>"
步骤 4:连接
只需启动您的 Velocity 代理,并从 Minecraft 客户端连接到它。如果遇到任何问题,请查阅我们的 文档 或提交 Issue!
获取帮助
如果您在使用 Impulse 时遇到问题、遇到 Bug,或者只是想推荐一个功能,请随时 提交 Issue! 我会尽力回复。
贡献
欢迎所有贡献!更多具体说明请参阅我们的 贡献 页面。
关于创建您自己的 Broker 以集成到其他服务器平台的具体细节,请参阅 我们的指南。
Impulse
Impulse is a plugin for the Minecraft server proxy Velocity. It adds the ability
to dynamically start and stop servers on demand as players join and leave. Why run a server that is only used for a few
hours a day?
Key Features
Impulse has many features to make managing your servers easy! Some highlights include:
- Dynamic server creation and destruction - only run servers when your players are connected
- First and third party brokers - Cores to drive your servers no matter how they are deployed, via Docker, JAR files,
or something else. We are actively working on expanding our selection but you can find the full list
here
- Automatic hot reload of configuration - update how impulse runs a server automatically, without a reload command!
- Unmanaged server support - plays nice with any static servers you have configured in Velocity
- Custom events - broadcasts custom events that allow you to extend Impulse's functionality
- Third party Broker support - Implement your own Broker or use someone else's to manage your servers
- FOSS - Impulse is commited to being free and open source always
Documentation
For more detailed information on how to use Impulse, see our documentation.
For API documentation, see our KDocs.
Installation
In short, download our latest release from one of our sources and place it in your Velocity plugins folder. For more
detailed instructions see our installation
guide.
Sources:
Quick Start
[!TIP]
Looking for a more in-depth guide? See
our Getting Started
documentation.
The following configuration should get you started with a simple lobby server.
Step 1: Configure Velocity
Simply add the server to your velocity config as normal.
player-info-forwarding = "modern"
[servers]
lobby = "127.0.0.1:25566"
try = ["lobby"]
Step 2: Configure Impulse
Configure impulse so it know how to manage your server
instanceName: Bones
servers:
- name: lobby
inactiveTimeout: 300
type: docker
docker:
image: itzg/minecraft-server
portBindings:
- "25566:25565"
env:
ONLINE_MODE: "FALSE"
TYPE: "FABRIC"
EULA: "TRUE"
MODRINTH_PROJECTS: "fabricproxy-lite"
DIFFICULTY: "PEACEFUL"
ALLOW_NETHER: "FALSE"
MODE: "adventure"
volumes:
- "/srv/lobby:/data"
Step 3: Configure the MC Server
Add some config to allow for modern forwarding
# create the file /srv/lobby/config/FabricProxy-Lite.toml
hackOnlineMode = true
hackEarlySend = false
hackMessageChain = true
disconnectMessage = "This server requires you to connect through the proxy."
secret = "<YOUR SECRET FROM forwarding.secret FILE>"
Step 4: Connect
Simply start your velocity proxy and connect to it from your Minecraft client. If you run into issues check
our documentation or open an issue!
Getting Help
If your having problems with Impulse, experiencing a bug, or just want to recommend a feature, feel free
to open an issue! I will do my best to
respond.
Contributing
All contributions are welcome! For more specific instructions see
our contributing page.
For specifics on adding creating your own broker to integrate with another server platform
see our guide.
评论 0
登录后参与评分
还没有评论,来抢沙发吧