SteamWar/SpigotCore
Archiviert
13
0

Fix Name and ID cannot be both blank
Alle Prüfungen waren erfolgreich
SteamWarCI Build successful

Dieser Commit ist enthalten in:
Lixfel 2022-08-05 07:37:08 +02:00
Ursprung c13728cf39
Commit 012fd7afcd

Datei anzeigen

@ -289,7 +289,7 @@ public class FlatteningWrapper14 implements FlatteningWrapper.IFlatteningWrapper
ItemStack head = new ItemStack(Material.PLAYER_HEAD, 1); ItemStack head = new ItemStack(Material.PLAYER_HEAD, 1);
SkullMeta headmeta = (SkullMeta) head.getItemMeta(); SkullMeta headmeta = (SkullMeta) head.getItemMeta();
assert headmeta != null; assert headmeta != null;
headmeta.setOwningPlayer(Bukkit.getOfflinePlayer(player)); headmeta.setOwningPlayer(Bukkit.getOfflinePlayer(player.startsWith(".") ? player.substring(1) : player));
headmeta.setDisplayName(player); headmeta.setDisplayName(player);
head.setItemMeta(headmeta); head.setItemMeta(headmeta);
return head; return head;