TeamSync
TeamSync 是一款高级 Paper Minecraft 插件,可实时同步玩家状态——无论是在计分板队伍内还是整个服务器范围内。
与传统的多玩家各自拥有独立状态的玩法不同,TeamSync 将游戏体验转变为共享模式,使玩家实际上作为一个同步的整体行动。
? 游戏模式
TEAM MODE
- 仅同步同一计分板队伍内的玩家
- 每个队伍拥有独立的共享状态
- 队伍之间互不影响
GLOBAL MODE
- 服务器上所有玩家共享单个同步状态
- 任何更改都会立即影响所有人
❤️ 同步功能
- 生命值(HP、最大生命值、吸收伤害)
- 饥饿值(食物等级、饱和度、疲劳度)
- 完整背包
- 盔甲和副手物品
- 药水效果(完全同步)
- 经验值(等级与进度)
- 进度与配方解锁
- 死亡系统(团队或全局共享死亡)
? 死亡系统
如果一名同步玩家死亡:
- 所有同步玩家立即死亡
- 物品正常掉落
- 死亡次数在组内共享
? 末影箱同步(可选)
- 按队伍或全局共享末影箱
- 可通过
config.yml 完全配置
⚙️ 加入与状态处理
- 新玩家自动获取当前共享状态
- 队伍变更会将玩家在不同状态间移动
- 无队伍的玩家独立运行
? 性能与优化
TeamSync 以性能为核心设计:
- 事件驱动架构(无持续 tick 循环)
- 缓存状态系统
- 最小化
ItemStack 克隆
- 无需不必要的玩家扫描
- 防止无限同步循环
- 轻量且可扩展,支持 200+ 玩家
? 最后更新优先系统
冲突通过基于时间戳的系统解决:
- 最新的更改始终覆盖之前的状态
- 确保所有同步玩家的一致性
? 命令
/team-sync reload
/team-sync status
/team-sync mode <TEAM|GLOBAL>
/team-sync force-sync <player>
/team-sync gui
?️ 权限
⚙️ 配置
mode: TEAM
sync-enderchest: true
save-team-state: true
debug: false
TeamSync
TeamSync is an advanced Paper Minecraft plugin that synchronizes player states in real time — either within scoreboard teams or across the entire server.
Instead of traditional multiplayer where every player has their own independent state, TeamSync turns gameplay into a shared experience where players effectively act as one synchronized entity.
? Game Modes
TEAM MODE
- Synchronizes players only within the same scoreboard team
- Each team has its own independent shared state
- Teams do not affect each other
GLOBAL MODE
- All players on the server share a single synchronized state
- Every change affects everyone instantly
❤️ Synchronized Features
- Health (HP, max HP, absorption)
- Hunger (food level, saturation, exhaustion)
- Full inventory
- Armor and offhand item
- Potion effects (complete synchronization)
- Experience (level and progress)
- Advancements and recipe unlocks
- Death system (shared team or global death)
? Death System
If one synchronized player dies:
- All synchronized players die instantly
- Items are dropped normally
- Death count is shared across the group
? Ender Chest Sync (Optional)
- Shared ender chest per team or globally
- Fully configurable via
config.yml
⚙️ Join & State Handling
- New players automatically receive the current shared state
- Team changes move players between states
- Players without a team operate independently
? Performance & Optimization
TeamSync is built with performance in mind:
- Event-driven architecture (no constant ticking loops)
- Cached state system
- Minimal
ItemStack cloning
- No unnecessary player scanning
- Protection against infinite sync loops
- Lightweight and scalable for 200+ players
? Last Update Wins System
Conflicts are resolved using a timestamp-based system:
- The most recent change always overrides previous state
- Ensures consistency across all synchronized players
? Commands
/team-sync reload
/team-sync status
/team-sync mode <TEAM|GLOBAL>
/team-sync force-sync <player>
/team-sync gui
?️ Permissions
⚙️ Configuration
mode: TEAM
sync-enderchest: true
save-team-state: true
debug: false
评论 0
登录后参与评分
还没有评论,来抢沙发吧