Don't use random UUID for custom player heads

This commit is contained in:
Marc Baloup 2023-07-29 13:39:13 +02:00
parent c0e0097b7b
commit 2969d51f72
1 changed files with 1 additions and 1 deletions

View File

@ -167,7 +167,7 @@ public enum Skull {
SkullMeta headMeta = (SkullMeta) head.getItemMeta();
PlayerProfile profile = Bukkit.createProfile(UUID.randomUUID());
PlayerProfile profile = Bukkit.createProfile(UUID.nameUUIDFromBytes(str.getBytes()));
profile.setProperty(new ProfileProperty("textures", str));
headMeta.setPlayerProfile(profile);