? SharedInventoryLink
适用于 Paper 服务器的实时物品栏同步
将两个或多个玩家的物品栏链接在一起,使其始终共享相同的物品 —— 支持盔甲、快捷栏、副手等内容的实时同步。
? SharedInventoryLink 是什么?
SharedInventoryLink 是一款轻量级的 Paper 插件,它将一组玩家的物品栏链接起来。当其中一名玩家拾取物品、合成道具或穿戴盔甲时,所有已链接的队友都会立即看到相同的变更。非常适合 合作生存、冒险地图、双人/三人 PvP 以及任何资源共享带来乐趣的游戏模式。
✨ 功能特性
| 功能 |
描述 |
| ? 实时同步 |
物品栏更新在 1 个游戏刻(50ms)内推送 |
| ? 分组系统 |
在 config.yml 中定义命名组 —— 每个组共享同一个物品栏 |
| ? 全局同步模式 |
可选将所有服务器玩家同步到一个共享物品栏 |
| ?️ 完整槽位支持 |
同步主物品栏、盔甲槽和副手槽 |
| ☠️ 无死亡复制 |
死亡时不掉落物品 —— 杜绝复制漏洞 |
| ? 加入时同步 |
中途加入的玩家会立即获得该组的当前物品栏 |
| ? PlaceholderAPI 支持 |
内置 PAPI 占位符,可用于标签页列表和聊天插件 |
| ⚡ 权限绕过 |
管理员/工作人员可以选择退出同步 |
| ? 热重载 |
/sinv reload 可在无需重启服务器的情况下重新加载配置 |
? 安装方法
- 下载
SharedInventoryLink.jar
- 将其放入服务器的
/plugins 文件夹
- 重启服务器
- 编辑
plugins/SharedInventoryLink/config.yml
- 运行
/sinv reload —— 完成!
要求:
- Paper(或其分支:Purpur, Folia)1.20 – 1.21+
- Java 17 或更高版本
- (可选) PlaceholderAPI 用于占位符功能
⚙️ 配置说明
# 全局同步:与服务器上的每位玩家共享物品栏
global-sync:
enabled: false
# 分组同步:仅列出的玩家共享物品栏
groups:
team_red:
- PlayerA
- PlayerB
team_blue:
- PlayerC
- PlayerD
# 同步内容
sync:
main-inventory: true # 快捷栏 + 主存储区
armor: true # 头盔、胸甲、护腿、靴子
off-hand: true # 副手槽
on-pickup: true # 拾取物品时同步
on-consume: true # 消耗食物/药水时同步
on-drop: true # 手动丢弃物品时同步
on-click: true # 点击物品栏/合成时同步
sync-delay-ticks: 1 # 同步触发前的延迟(1 个游戏刻 = 50ms)
? 命令列表
| 命令 |
别名 |
描述 |
权限 |
/sharedinventory help |
/sinv help |
显示帮助菜单 |
sharedinventorylink.admin |
/sharedinventory reload |
/sinv reload |
重新加载配置 |
sharedinventorylink.admin |
/sharedinventory status |
/sinv status |
显示你的同步分组 |
sharedinventorylink.admin |
/sharedinventory info |
/sinv info |
插件信息与版本 |
sharedinventorylink.admin |
? 权限说明
| 权限 |
默认值 |
描述 |
sharedinventorylink.admin |
OP |
访问所有管理员命令 |
sharedinventorylink.reload |
OP |
重新加载配置 |
sharedinventorylink.bypass |
false |
完全跳过物品栏同步 |
? PlaceholderAPI 占位符
需要安装 PlaceholderAPI。
| 占位符 |
返回值 |
%sharedinventorylink_group% |
玩家所属组名,若无则为 None |
%sharedinventorylink_tag% |
格式化后的组标签,例如 [team_red] |
%sharedinventorylink_in_group% |
true 或 false |
%sharedinventorylink_global% |
若开启全局同步则返回 true |
?️ 防复制系统
SharedInventoryLink 包含完整的 安全死亡物品栏系统:
- 当组队玩家死亡时,取消所有物品掉落 —— 不会有物品掉落在地上
- 死亡玩家的空物品栏会被 锁定,永远不会同步给队友
- 重生后,玩家会 自动接收 该组当前的物品栏
- 手动丢弃(按下 Q 键)仍然有效,并正确同步给团队
这意味着无论玩家如何死亡或重生,都 不会发生物品复制。
?️ 使用场景
- ?️ 合作生存 —— 情侣或好友共享一个物品池
- ⚔️ 团队 PvP —— 双人/三人小队,资源共享作为核心机制
- ?️ 冒险地图 —— 强制玩家间物品栏一致
- ? 小游戏 —— 装备分发并保持自动同步
? 推荐主机服务商 — Slug Hosting
? SharedInventoryLink 自豪地在 Slug Hosting 上进行测试与推荐 —— 提供高性价比、高性能的 Minecraft 服务器托管服务,拥有直观的控制面板、DDoS 防护和即时部署功能。
| ⚡ 功能 |
✅ 详情 |
| ?️ 控制面板 |
由 panel.slughosting.com 提供支持的 Pterodactyl 面板 |
| ?️ DDoS 防护 |
包含企业级网络防护 |
| ? 插件支持 |
完全兼容 Paper / Purpur / Folia |
| ? 技术支持 |
通过 Discord 提供 24/7 全天候帮助 |
| ? 即时部署 |
服务器在 60 秒内上线 |
? 更新日志
v1.0.0
- 首次发布
- 群组与全局同步系统
- 完整盔甲 + 副手支持
- 防死亡复制系统
- PlaceholderAPI 集成
- 热重载命令
? 致谢
由 Pawan ❤️ 制作
? Discord: allay_gaming_x
如果你喜欢这个插件,请在 Modrinth 上留下 ⭐ 评分——这很有帮助!
? SharedInventoryLink
Real-time inventory synchronization for Paper servers
Link two or more players' inventories so they always share the same items — in real-time, across armor, hotbar, off-hand, and more.
? What is SharedInventoryLink?
SharedInventoryLink is a lightweight Paper plugin that links the inventories of players in a group. When one player picks up an item, crafts something, or equips armor — every linked teammate instantly sees the same change. Perfect for co-op survival, adventure maps, duos/trios PvP, and any gamemode where shared resources are part of the fun.
✨ Features
| Feature |
Description |
| ? Real-time Sync |
Inventory updates are pushed within 1 tick (50ms) |
| ? Group System |
Define named groups in config.yml — each group shares one inventory |
| ? Global Sync Mode |
Optionally sync ALL players on the server to one shared inventory |
| ?️ Full Slot Support |
Syncs main inventory, armor slots, and off-hand |
| ☠️ No Death Duplication |
Items never drop on death — no dupe exploits possible |
| ? Join Sync |
Players who join mid-session instantly receive the group's inventory |
| ? PlaceholderAPI |
Built-in PAPI placeholders for tab lists and chat plugins |
| ⚡ Bypass Permission |
Staff/admins can opt out of syncing |
| ? Hot Reload |
/sinv reload reloads config with zero restarts |
? Installation
- Download
SharedInventoryLink.jar
- Drop it into your server's
/plugins folder
- Restart the server
- Edit
plugins/SharedInventoryLink/config.yml
- Run
/sinv reload — done!
Requirements:
- Paper (or its forks: Purpur, Folia) 1.20 – 1.21+
- Java 17 or higher
- (Optional) PlaceholderAPI for placeholders
⚙️ Configuration
# Global sync: share inventory with every player on the server
global-sync:
enabled: false
# Group sync: only listed players share inventories
groups:
team_red:
- PlayerA
- PlayerB
team_blue:
- PlayerC
- PlayerD
# What to sync
sync:
main-inventory: true # Hotbar + main storage
armor: true # Helmet, chestplate, leggings, boots
off-hand: true # Off-hand slot
on-pickup: true # Sync when item is picked up
on-consume: true # Sync when food/potion is consumed
on-drop: true # Sync when item is manually dropped
on-click: true # Sync on inventory click / crafting
sync-delay-ticks: 1 # Delay before sync fires (1 tick = 50ms)
? Commands
| Command |
Alias |
Description |
Permission |
/sharedinventory help |
/sinv help |
Show help menu |
sharedinventorylink.admin |
/sharedinventory reload |
/sinv reload |
Reload config |
sharedinventorylink.admin |
/sharedinventory status |
/sinv status |
Show your sync group |
sharedinventorylink.admin |
/sharedinventory info |
/sinv info |
Plugin info & version |
sharedinventorylink.admin |
? Permissions
| Permission |
Default |
Description |
sharedinventorylink.admin |
OP |
Access to all admin commands |
sharedinventorylink.reload |
OP |
Reload configuration |
sharedinventorylink.bypass |
false |
Skip inventory sync entirely |
? PlaceholderAPI Placeholders
Requires PlaceholderAPI to be installed.
| Placeholder |
Returns |
%sharedinventorylink_group% |
Player's group name, or None |
%sharedinventorylink_tag% |
Formatted group tag e.g. [team_red] |
%sharedinventorylink_in_group% |
true or false |
%sharedinventorylink_global% |
true if global sync is on |
?️ Anti-Duplication System
SharedInventoryLink includes a full death-safe inventory system:
- When a grouped player dies, all item drops are cancelled — nothing falls on the ground
- The dead player's empty inventory is locked and never synced to teammates
- On respawn, the player automatically receives the group's current inventory
- Manual drops (pressing Q) still work and sync correctly to the group
This means zero item duplication regardless of how players die or respawn.
?️ Use Cases
- ?️ Co-op survival — a couple or friends sharing one inventory pool
- ⚔️ Team PvP — duos/trios where resource sharing is a mechanic
- ?️ Adventure maps — force inventory parity between players
- ? Minigames — kit distribution that stays in sync automatically
? Recommended Hosting — Slug Hosting
? SharedInventoryLink is proudly tested and recommended on Slug Hosting — affordable, high-performance Minecraft server hosting with an intuitive control panel, DDoS protection, and instant setup.
| ⚡ Feature |
✅ Details |
| ?️ Control Panel |
Pterodactyl-powered at panel.slughosting.com |
| ?️ DDoS Protection |
Enterprise-grade network protection included |
| ? Plugin Support |
Full Paper / Purpur / Folia compatibility |
| ? Support |
24/7 help via Discord |
| ? Instant Deploy |
Server online in under 60 seconds |
? Changelog
v1.0.0
- Initial release
- Group & global sync system
- Full armor + off-hand support
- Anti-death-duplication system
- PlaceholderAPI integration
- Hot reload command
? Credits
Made with ❤️ by Pawan
? Discord: allay_gaming_x
If you enjoy the plugin, please leave a ⭐ rating on Modrinth — it helps a lot!
评论 0
登录后参与评分
还没有评论,来抢沙发吧