uxmEssentials Velocity 插件
代理端的总线中介,让一组 uxmEssentials 后端在家园、传送点、经济、金库、交易、隐身等功能上保持同步,并在所有服务器间共享。



Velocity 3.x · uxmEssentials 配套组件 · 后端基于 Paper 26.2 · 开源 (GPL-3.0)
它的作用
uxmEssentials 通过一个轻量级的“变更通知”总线来保持跨服务器状态的一致性,而不是在网络中传输完整的数据包。此插件是该总线的 Velocity 传输层:将其放置在代理端,后端即可通过插件消息通道经由它转发同步通知,无需 Redis。
当玩家设置家园、存入资金、编辑金库或跨服交易时,发起方会发布一条简短的通知;其他所有后端都会丢弃该行数据的缓存副本,并从共享数据库中重新读取权威值。数据库始终保持唯一真相源,且变更绝不会以完整对象的形式在网络中传输。
同步内容
家园、传送点、玩家自定义传送点、经济、金库、交易、隐身、管理、全息图、NPC、投票活动以及消息忽略列表——任何由 uxmEssentials 在一个共享数据库的节点间复制的上下文数据。
安装步骤
-
将 uxmEssentials-velocity-0.8.0.jar 放入你的 Velocity plugins/ 文件夹中。
-
在每个后端服务器上,于 plugins/uxmEssentials/config.conf 中选择传输方式:
network {
enabled = true
server-id = "survival-1" # 每个后端唯一
transport = "velocity" # velocity | redis | both
}
-
启动代理和后端服务器。总线会自动启动;如果没有代理、Redis 或同伴节点存在,它会优雅地回退到仅本地模式,因此单服务器的行为不会发生任何改变。
依赖要求
- 代理端: 已安装本插件的 Velocity 3.x。
- 后端服务器: 运行 uxmEssentials 0.8.0 的 Paper 26.2,且所有服务器共享同一个数据库(SQLite 仅支持单写入者,实际网络环境请使用 MySQL / MariaDB / PostgreSQL)。
- 主插件必需: 本插件无法独立工作;它是 uxmEssentials 的传输组件。
备注
开源协议 (GPL-3.0)。如果你运行的是 Velocity 网络并希望在不使用 Redis 的情况下实现跨服同步,才需要此插件。对于无代理架构,请使用 Redis 插件替代——相同的总线,不同的传输方式。
uxmEssentials Velocity add-on
The proxy-side bus broker that keeps a network of uxmEssentials backends in sync homes, warps, economy, vaults, trade, vanish, and more, shared across every server.



Velocity 3.x · Companion to uxmEssentials · Backends on Paper 26.2 · Open source (GPL-3.0)
What it does
uxmEssentials keeps cross-server state consistent over a small "this changed" bus rather than shipping full payloads around the network. This add-on is the Velocity transport for that bus: drop it on your proxy and the backends relay their sync notices through it over plugin messaging no Redis required.
When a player sets a home, deposits money, edits a vault, or trades across servers, the origin publishes a short notice; every other backend drops its cached copy of that row and re-reads the authoritative value from the shared database. The database stays the single source of truth, and a change never travels as a full object.
What stays in sync
Homes, warps, player-warps, economy, vaults, trade, vanish, moderation, holograms, NPCs, the vote party, and the messaging ignore list every context uxmEssentials replicates across nodes that share one database.
Setup
-
Drop uxmEssentials-velocity-0.8.0.jar into your Velocity plugins/ folder.
-
On each backend, pick the transport in plugins/uxmEssentials/config.conf:
network {
enabled = true
server-id = "survival-1" # unique per backend
transport = "velocity" # velocity | redis | both
}
-
Start the proxy and the backends. The bus comes up automatically; with no proxy, Redis, or peer present it falls back cleanly to local-only, so single-server behaviour never changes.
Requirements
- Proxy: Velocity 3.x with this add-on installed.
- Backends: Paper 26.2 running uxmEssentials 0.8.0, all sharing one database (SQLite is single-writer use MySQL / MariaDB / PostgreSQL for a real network).
- Main jar required this add-on does nothing on its own; it is the transport for uxmEssentials.
Notes
Open source (GPL-3.0). You only need this jar if you run a Velocity network and want cross-server sync without Redis. For a proxy-less setup, use the Redis add-on instead the same bus, a different transport.
评论 0
登录后参与评分
还没有评论,来抢沙发吧