SteamWar/SpigotCore
Archiviert
13
0

Fix headmeta for bedrock player
Alle Prüfungen waren erfolgreich
SteamWarCI Build successful

Dieser Commit ist enthalten in:
Lixfel 2022-09-10 21:44:51 +02:00
Ursprung 7d74179c26
Commit 282b258e55

Datei anzeigen

@ -59,7 +59,7 @@ public class FlatteningWrapper8 implements FlatteningWrapper.IFlatteningWrapper
public ItemStack setSkullOwner(String player) { public ItemStack setSkullOwner(String player) {
ItemStack head = new ItemStack(Material.SKULL_ITEM, 1, (short) 3); ItemStack head = new ItemStack(Material.SKULL_ITEM, 1, (short) 3);
SkullMeta headmeta = (SkullMeta) head.getItemMeta(); SkullMeta headmeta = (SkullMeta) head.getItemMeta();
headmeta.setOwner(player); headmeta.setOwner(player.startsWith(".") ? player.substring(1) : player);
headmeta.setDisplayName(player); headmeta.setDisplayName(player);
head.setItemMeta(headmeta); head.setItemMeta(headmeta);
return head; return head;