uxmEssentials Redis 附加组件
uxmEssentials 跨服总线的 Redis 传输层,通过 Redis pub/sub 保持家园、传送点、经济、金库、交易、隐身等功能在服务器网络间同步,无需代理。



Paper 26.2 · Java 25 · 支持 Folia · uxmEssentials 配套插件 · 开源 (GPL-3.0)
功能说明
uxmEssentials 通过一个轻量级的“变更通知”总线而非在网络中传输完整数据包来保持跨服状态一致。此附加组件是该总线的 Redis 传输层:将其指向 Redis 服务器后,共享同一数据库和同一个 Redis 实例的一组后端节点将直接同步,中间无需 Velocity 代理。
当玩家设置家园、存入金钱、编辑金库或跨服交易时,发起方会通过 Redis pub/sub 发布简短通知;其他所有后端节点会丢弃该行数据的缓存副本,并从共享数据库中重新读取权威值。数据库始终保持为唯一真实数据源,且变更不会以完整对象的形式传输。
同步内容
家园、传送点、玩家自定义传送点、经济、金库、交易、隐身、管理、全息图、NPC、投票派对以及消息忽略列表——这些是 uxmEssentials 在所有共享同一数据库的节点间复制的所有上下文内容。
安装步骤
-
将 uxmEssentials-redis-0.8.0.jar 放入每个后端节点的 plugins/ 文件夹中,与主 uxmEssentials jar 文件并列放置。
-
在 plugins/uxmEssentials/config.conf 中将 uxmEssentials 指向你的 Redis 服务器并选择传输方式:
network {
enabled = true
server-id = "survival-1" # 每个后端节点必须唯一
transport = "redis" # velocity | redis | both
redis {
host = "127.0.0.1"
port = 6379
password = ""
db = 0
channel = "uxmessentials:bus"
}
}
-
启动后端节点。所有共享数据库和 Redis 通道的节点会自动加入总线;若无法连接 Redis、代理或对等节点,则会自动优雅地回退到仅本地模式,因此单机行为始终不受影响。
依赖要求
- Redis: 任何可访问的 Redis 服务器(单个实例即可)。
- 后端节点: 运行 uxmEssentials 0.8.0 的 Paper 26.2,且全部共享同一数据库。对于实际的网络环境,请使用 MySQL / MariaDB / PostgreSQL;SQLite 仅支持单写入者。
- 主插件必需: 此附加组件无法独立运行;它是 uxmEssentials 的传输模块。
备注
本插件开源 (GPL-3.0)。当你希望在无 Velocity 代理的情况下实现跨服同步时使用此插件。如果你已经运行了 Velocity,可使用 Velocity 附加组件,它通过插件消息通道承载相同的总线功能。
uxmEssentials Redis add-on
The Redis transport for uxmEssentials' cross-server bus keep homes, warps, economy, vaults, trade, vanish, and more in sync across a network over Redis pub/sub, with no proxy required.



Paper 26.2 · Java 25 · Folia-ready · Companion to uxmEssentials · 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 Redis transport for that bus: point it at a Redis server and a plain set of backends sharing one database and one Redis instance sync directly, with no Velocity proxy in the middle.
When a player sets a home, deposits money, edits a vault, or trades across servers, the origin publishes a short notice over Redis pub/sub; 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-redis-0.8.0.jar into each backend's plugins/ folder, alongside the main uxmEssentials jar.
-
Point uxmEssentials at your Redis server and pick the transport in plugins/uxmEssentials/config.conf:
network {
enabled = true
server-id = "survival-1" # unique per backend
transport = "redis" # velocity | redis | both
redis {
host = "127.0.0.1"
port = 6379
password = ""
db = 0
channel = "uxmessentials:bus"
}
}
-
Start the backends. Every node that shares the database and the Redis channel joins the bus automatically; with no Redis, proxy, or peer reachable it falls back cleanly to local-only, so single-server behaviour never changes.
Requirements
- Redis: any reachable Redis server (a single instance is enough).
- Backends: Paper 26.2 running uxmEssentials 0.8.0, all sharing one database. For a real network use MySQL / MariaDB / PostgreSQL SQLite is single-writer.
- Main jar required this add-on does nothing on its own; it is the transport for uxmEssentials.
Notes
Open source (GPL-3.0). Use this when you want cross-server sync without a Velocity proxy. If you already run Velocity, the Velocity add-on carries the same bus over plugin messaging instead.
评论 0
登录后参与评分
还没有评论,来抢沙发吧