Don't use random UUID for custom player heads
This commit is contained in:
parent
c0e0097b7b
commit
2969d51f72
@ -167,7 +167,7 @@ public enum Skull {
|
|||||||
|
|
||||||
SkullMeta headMeta = (SkullMeta) head.getItemMeta();
|
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));
|
profile.setProperty(new ProfileProperty("textures", str));
|
||||||
headMeta.setPlayerProfile(profile);
|
headMeta.setPlayerProfile(profile);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user