本次更新为 MultiProxySync 带来了 Redis Pub/Sub 实时同步机制 与 MiniPlaceholders 支持,并进一步优化了全局在线人数的同步体验。
除了原有基于 Redis 数据存储与定时心跳刷新的同步方式外,本版本还补上了 跨代理人数变化传播不够及时 这一在项目较早阶段就已明确存在的问题。
This release brings Redis Pub/Sub real-time synchronization and MiniPlaceholders support to MultiProxySync, while further improving the global player count synchronization experience.
In addition to the original Redis data storage and heartbeat-based refresh model, this version also addresses the insufficiently timely propagation of cross-proxy player count changes, an issue that had already been clearly identified since the earlier stages of the project.
✨ 特性更新 | Features
-
Pub/Sub 实时同步 / Pub/Sub Real-Time Sync:
当玩家加入、离开,或代理关闭时,插件会通过 Redis Pub/Sub 主动广播人数更新消息,让其他代理更快刷新本地缓存的全局在线人数。
When a player joins, leaves, or a proxy shuts down, the plugin now actively publishes player count update messages through Redis Pub/Sub, allowing other proxies to refresh their locally cached global player count much faster. -
MiniPlaceholders 支持 / MiniPlaceholders Support:
现在支持在安装MiniPlaceholders时自动注册占位符。
The plugin now supports automatic placeholder registration whenMiniPlaceholdersis installed. -
新增占位符 / New Placeholder:
新增<multiproxysync_global_player_count>占位符,可用于显示当前同步后的全网在线人数。
Added the<multiproxysync_global_player_count>placeholder, which can be used to display the current synchronized global player count.
🔧 改进与优化 | Improvements
-
同步时效优化 / Synchronization Responsiveness:
优化了多代理环境下玩家人数变化的传播速度,使人数更新能更快反映到本地缓存与 Ping 显示中。
Improved the propagation speed of player count changes in multi-proxy environments, allowing updates to be reflected more quickly in local cache and ping display. -
关服刷新优化 / Shutdown Refresh Improvements:
代理关闭时会在清理自身 Redis 数据后主动发布更新消息,进一步减少其他代理人数显示延迟。
When a proxy shuts down, it now publishes an update after cleaning up its own Redis data, further reducing player count display delay on other proxies. -
占位符读取优化 / Placeholder Optimization:
占位符现在改为使用本地缓存人数,而不是在高频解析时重复全量查询 Redis。
Placeholders now use the locally cached player count instead of repeatedly scanning Redis during frequent resolution.
🐛 修复 | Fixes
-
同步延迟问题 / Synchronization Delay Issue:
修复了项目早期就已发现的一个问题:在仅依赖 Redis 数据同步与定时心跳刷新时,玩家加入、离开或代理关闭后,其他代理上的人数更新可能不够及时。
Fixed an issue identified since the early stages of the project: when relying only on Redis data synchronization and periodic heartbeat refreshes, player count updates on other proxies could lag behind after player joins, leaves, or proxy shutdowns. -
占位符额外开销 / Placeholder Overhead:
修复了占位符解析过程中可能带来的额外 Redis 全量查询开销。
Fixed unnecessary full Redis scan overhead that could be caused during placeholder resolution.