跳到正文

UUID Fixer

作者:xkat

Assigns Mojang UUID's to players joining an offline mode server, allowing in-game entities / other services(mods like essential) to use actual UUID instead of hashing player's username.

收藏

截图

介绍

中文介绍正在准备中,下面暂时显示原文。

What does this mod do?

Assigns Mojang UUIDs to players joining an offline-mode server, allowing in-game entities and other services (mods like Essential) to use the actual UUID instead of a hash of the player’s username.

Without this, offline mode gives every player a UUID hashed from their username instead of their real Mojang/Microsoft UUID. That breaks anything keyed to UUID: villager trading reputation, tamed pets, advancements, playerdata, permission plugins, Essential, etc.

This mod checks the Mojang API for each joining player’s real UUID and uses that instead, when one exists. If the lookup fails or times out (or the account isn’t premium), it falls back to vanilla’s normal offline UUID – nothing breaks, you just don’t get the fix for that player.

Server-side only. Nothing to install on the client.

How it works

UUIDUtilMixin — the only piece of vanilla-facing code. It intercepts UUIDUtil.createOfflinePlayerUUID and substitutes the real UUID when one is available.
UuidLookupService — calls api.mojang.com, with a 2-second timeout. A slow or unreachable Mojang API costs a player a couple of seconds on first join, never a hang.
UuidCache — remembers results (both hits and confirmed misses) in config/uuidfixer/cache.json so repeat joins don’t re-hit the API.

常见问题

UUID Fixer 支持哪些 Minecraft 版本?

UUID Fixer 支持 Minecraft Java 版 26.2–26.3,共 2 个版本,可用的加载器:Fabric。下载时注意选择和你游戏版本一致的文件。

UUID Fixer 怎么安装?

先用 PCL2 或 HMCL 启动器安装对应版本的 Fabric,再把下载的 .jar 文件放进游戏目录的 mods 文件夹,重新启动游戏即可。开启了版本隔离的,mods 文件夹在 versions/版本名 下面。运行环境:仅服务端。

评论

登录后评论和评分

xkat 的其他作品

查看全部 →