将 基岩版 和 Java版 账号绑定为同一个角色 —— 共享背包、末影箱、经验值、宠物和皮肤 —— 要求两个账号同时在线。
⬇️ 下载 1.1.0-beta,不要下载 1.0.0
你需要的是 1.1.0-beta 版本。 尽管带有 beta(测试版)标签,但它实际上比 1.0.0 更好:
|
1.0.0 |
1.1.0-beta |
| Minecraft |
仅限 26.2 |
1.18 → 26.2 |
| 平台 |
Paper |
Paper, Spigot, Folia |
| 重新登录后 Java 皮肤状态 |
丢失 |
保留 |
| 宠物识别当前使用的账号 |
失效 |
正常工作 |
| SkinsRestorer 兼容性 |
与皮肤发生冲突 |
自动避让 |
| 每个已绑定玩家的清理成本 |
每秒复制 68 个物品 |
无需复制 |
之所以标记为 beta,是因为其支持的范围远大于实际测试过的范围:已在 Paper 1.18.2、Paper 26.2 和 Folia 26.2 上验证加载功能,但完整功能集仅在 Paper 26.2 的实际游玩中得到充分测试。
你真的需要这个插件吗?
Floodgate 已经原生支持账号绑定,并且如果你不需要两个账号同时在线,它是更好的选择:基岩版账号会变成 Java 版账号,UUID 相同,所有数据共享,且完全不需要任何插件。如果这符合你的需求,请使用 Floodgate 并忽略本项目。
关键在于使用相同的 UUID——一个 UUID 对应一个会话,因此用第二个账号登录会将第一个账号踢下线,并提示“您已从其他位置登录”。
CrossLink 将 UUID 保持分离,并在它们之间同步状态。这使得你可以在手机上让角色挂机刷资源,同时在 PC 上玩同一个角色。
玩家如何关联账号
自助操作,无需管理员介入。首次加入时,每个账号会弹出一个原生的 Bedrock 表单(仅一次)。
在账号 A 上:/link <账号 B 的名称> → 6 位验证码
在账号 B 上:/link <验证码> → 已链接
这两个步骤的作用是证明同一个人同时控制着这两个账号。如果没有这种交叉确认,任何人都可以通过输入受害者的名称将自己与其库存关联起来。
无需 Microsoft OAuth,也无需注册 Azure 应用——否则将迫使每个托管该插件的人都自行注册其应用程序。
共享的内容
每一行都是独立的,因此你可以在保留每个账户专属护甲的同时共享背包:
同步:
物品栏:true # 背包的 36 个格子
盔甲:true # 4 个盔甲槽位
副手:true # 副手槽位
末影箱:true
经验值:true # 等级、进度和总量
宠物:true # 狼、猫、马、鹦鹉
生命值:false # 见下文
饥饿值:false
健康和食物共享功能存在,但默认关闭。开启后,一方受到的伤害会立即反映在另一方身上,且死亡会导致双方同时阵亡。
不共享的内容包括:位置、维度、进度、药水效果和游戏模式。每个账号在世界中仍保持为独立的实体。
安全性
该插件会重写玩家物品栏,因此附带了以下安全机制:
- 每组指定一个主账号(Java 版)作为真实玩家数据的拥有者;其他账号仅镜像同步其数据。新链接的账号始终采用现有数据,且无法覆盖原有数据。
- 副账号将保留空的玩家数据,以便日后移除插件时只保留一个所有者,避免物品重复。
- 自动备份在每次破坏性写入前进行,可通过命令
/crosslink restore <player> 恢复。
性能
当没有任何活动时,事件路径开销为零。唯一的周期性开销来自定期扫描:每秒对每个在线已链接账号的状态进行哈希计算,直接操作实时物品栏,无需复制。
未加入链接组的玩家完全无开销——扫描器仅遍历链接组。在一个拥有 100 名玩家、三对链接账号的服务器上,实际处理的是 6 名玩家,而非 100 名。
兼容性
|
|
| Minecraft |
1.18 → 26.2 |
| 平台 |
Paper, Spigot, Purpur, Folia |
| Java |
17+(取决于你的服务器版本需求) |
| Floodgate |
可选,原生基岩版表单所需 |
| SkinsRestorer |
可检测;CrossLink 会自动避让,防止皮肤冲突 |
皮肤复制功能需要 Paper ——因为 Spigot 上不存在玩家配置文件 API,插件会明确提示而非静默失败。链接、物品栏、经验值和宠物功能在所有平台上均可用。
非代理插件。 它运行于后端服务器。在 Velocity 或 Waterfall 后方,状态按服务器独立保存:在一台后端服务器上建立的链接不会存在于另一台后端服务器上。
已知限制
如果两个账号在同一扫描间隔内都修改了物品栏,其中一个更改将生效,另一个则会丢失。交替使用账号不会触发此问题;但双方同时对箱子进行整理则会遇到。这是共享物品栏机制固有的特性。
⚠️ 不再积极维护。 本插件为特定服务器编写并公开分享,仅供参考。不保证后续更新、修复或支持;Issues 和 Pull Requests 可能无人回复。采用 MIT 许可证——欢迎自由 Fork;如果你维护了一个活跃的 Fork 版本,请提交 Issue,我会引导用户前往你的版本。
? 完整文档、源代码与问题反馈:github.com/GodOrigem/CrossLink
? 同时可在 Hangar 获取
Link a Bedrock and a Java account into one character — shared inventory, ender chest, XP, pets and skin — with both accounts online at the same time.
⬇️ Download 1.1.0-beta, not 1.0.0
1.1.0-beta is the version you want. Despite the beta label it is strictly better than 1.0.0:
|
1.0.0 |
1.1.0-beta |
| Minecraft |
26.2 only |
1.18 → 26.2 |
| Platform |
Paper |
Paper, Spigot, Folia |
| Java skin after relogging |
lost |
kept |
| Pets recognising the account in use |
broken |
works |
| SkinsRestorer |
fights over the skin |
steps aside |
| Sweep cost per linked player |
68 item copies/second |
no copying |
It is marked beta only because the supported range is far wider than what has been played on: loading was verified on Paper 1.18.2, Paper 26.2 and Folia 26.2, but the full feature set has only been exercised in real play on Paper 26.2.
Do you actually need this?
Floodgate already has native account linking, and it is the better option if you don't need both accounts online at once: the Bedrock account becomes the Java one, same UUID, everything shared with no plugin at all. If that fits you, use Floodgate and ignore this project.
The catch is that same UUID — one UUID is one session, so logging in with the second account kicks the first with "You logged in from another location".
CrossLink keeps the UUIDs separate and mirrors state between them. That's what lets you leave your character farming on the phone while playing the same character on PC.
How players link
Self-service, no admin needed. A native Bedrock form pops up on first join, once per account.
On account A: /link <name of account B> → 6-digit code
On account B: /link <code> → linked
The two steps are what prove the same person controls both accounts. Without that cross-confirmation, anyone could link themselves to someone else's inventory just by typing the victim's name.
No Microsoft OAuth, no Azure app registration — that would force everyone hosting the plugin to register their own application.
What is shared
Every line is independent, so you can share the backpack while keeping armour per account:
sync:
inventory: true # the 36 backpack slots
armor: true # the 4 armour slots
offhand: true # the off-hand slot
ender-chest: true
xp: true # level, progress and total
pets: true # wolf, cat, horse, parrot
health: false # see below
food: false
Health and food sharing exist but are off by default — with them on, damage on one account shows on the other instantly, and death kills both.
Not shared: position, dimension, advancements, potion effects, gamemode. Each account remains its own entity in the world.
Safety
This plugin rewrites player inventories, so it ships with guardrails:
- A primary account per group (the Java one) owns the real playerdata; the others mirror it. A freshly linked account always adopts and can never overwrite.
- The secondary account leaves with empty playerdata, so removing the plugin later leaves exactly one owner instead of duplicating every item.
- Automatic backups before every destructive write, restorable with
/crosslink restore <player>.
Performance
The event path costs nothing when nobody is doing anything. The periodic sweep is the only recurring cost: once per second it hashes each online linked player's state, directly over the live inventory with no copying.
Players who are not in a linked group cost nothing at all — the sweep only walks groups. On a 100-player server with three linked pairs, the cost is six players, not a hundred.
Compatibility
|
|
| Minecraft |
1.18 → 26.2 |
| Platform |
Paper, Spigot, Purpur, Folia |
| Java |
17+ (whatever your server version needs) |
| Floodgate |
optional, needed for the native Bedrock form |
| SkinsRestorer |
detected; CrossLink steps aside so the skins don't fight |
Skin copying requires Paper — the player profile API does not exist on Spigot, and the plugin says so instead of failing silently. Linking, inventory, XP and pets work everywhere.
Not a proxy plugin. It runs on backend servers. Behind Velocity or Waterfall, state lives per server: a link made on one backend does not exist on another.
Known limits
If both accounts touch the inventory within the same sweep interval, one change wins and the other is lost. Alternating between accounts never hits this; both sorting chests simultaneously does. It is inherent to a shared inventory.
⚠️ Not actively maintained. Written for one specific server and published in case it's useful. No guarantee of updates, fixes or support; issues and pull requests may go unanswered. MIT licensed — fork it freely, and if you keep an active fork, open an issue and I'll point people to it.
? Full documentation, source and issues: github.com/GodOrigem/CrossLink
? Also on Hangar
评论 0
登录后参与评分
还没有评论,来抢沙发吧