SpyInventories
SpyInventories 是一款面向 Paper 和 Purpur(1.21+)的多世界库存管理与状态同步插件。作为 SpyCore 的配套扩展,它在不同的世界组之间隔离并管理玩家的物品栏、盔甲、副手物品、末影箱、生命值、饥饿值、药水效果及游戏模式。
功能特性
- 世界分组:将多个世界归为一组以共享库存数据。例如,
survival、survival_nether 和 survival_the_end 可以共用一套库存,而 creative 或 minigames 则完全独立。
- 完整状态隔离:管理物品栏槽位、盔甲、副手物品、末影箱、生命值、饥饿等级、活跃的药水效果以及游戏模式。
- 首次进入新组时的清理:当玩家首次进入一个此前没有数据的新区时,其物品栏和药水效果会被彻底清空,以防止物品溢出或重复生成。
- 异步保存:玩家库存文件通过异步方式保存,从而防止玩家在切换世界或断开连接时导致主线程卡顿。
- 自动移交 SpyCore 控制权:当 SpyInventories 与 SpyCore 同时安装时,SpyCore 会自动将其内部的库存处理器移交给 SpyInventories,以避免双重加载或保存冲突。
要求与安装
- 环境要求:
- Paper 或 Purpur 1.21+
- Java 21+
- SpyCore 1.1.0 或更高版本
- 安装步骤:
- 将
spycore-1.1.0.jar 和 spyinventories-1.0.7.jar 放入服务器的 plugins/ 目录中。
- 重启服务器。
配置
世界组在 plugins/SpyInventories/config.yml 中进行配置。
同一组内列出的世界将共享相同的库存池。遵循标准命名规则(_nether 和 _the_end)的维度会自动处理:
groups:
survival:
worlds:
- survival
- survival_nether
- survival_the_end
creative:
worlds:
- creative
minigames:
worlds:
- bedwars
- skywars
玩家数据按玩家存储在 plugins/SpyInventories/players/<UUID>/<group>.yml 中。
相关插件
许可证
本项目依据 知识共享署名-非商业性使用-相同方式共享 4.0 国际许可协议 (CC BY-NC-SA 4.0) 进行授权。
SpyInventories
SpyInventories is a multi-world inventory management and state-sync plugin for Paper and Purpur (1.21+). Built as a companion extension for SpyCore, it isolates and manages player inventories, armor, offhand items, ender chests, health, food, potion effects, and gamemodes across different world groups.
Features
- World Grouping: Group worlds together so they share inventory data. For example,
survival, survival_nether, and survival_the_end can share one inventory, while creative or minigames are kept completely separate.
- Full State Separation: Manages inventory slots, armor, offhand, ender chest, health, food levels, active potion effects, and gamemodes.
- Clean First-Time Joins: When a player enters a new world group for the first time without prior data, their inventory and effects are cleanly cleared to prevent item bleeding or duplication.
- Asynchronous Saving: Player inventory files are saved asynchronously to prevent main-thread lag spikes when players switch worlds or disconnect.
- Automatic SpyCore Handoff: When SpyInventories is installed alongside SpyCore, SpyCore automatically hands off its internal inventory handler to SpyInventories to prevent double-loading or conflicting saves.
Requirements & Installation
- Requirements:
- Paper or Purpur 1.21+
- Java 21+
- SpyCore 1.1.0 or newer
- Installation:
- Put both
spycore-1.1.0.jar and spyinventories-1.0.7.jar into your server's plugins/ directory.
- Restart the server.
Configuration
World groups are configured in plugins/SpyInventories/config.yml.
Worlds listed in the same group share the same inventory pool. Dimensions following standard naming (_nether and _the_end) are handled automatically:
groups:
survival:
worlds:
- survival
- survival_nether
- survival_the_end
creative:
worlds:
- creative
minigames:
worlds:
- bedwars
- skywars
Player data is stored per-player in plugins/SpyInventories/players/<UUID>/<group>.yml.
Sibling Plugins
- SpyCore: Multi-world management engine and VFS container system.
- SpyNetherPortals: Custom Nether and End portal routing for multi-world setups.
License
This project is licensed under the Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License (CC BY-NC-SA 4.0).
评论 0
登录后参与评分
还没有评论,来抢沙发吧