From 012fd7afcd36c27e871802f8b2faf1e136a126e2 Mon Sep 17 00:00:00 2001 From: Lixfel Date: Fri, 5 Aug 2022 07:37:08 +0200 Subject: [PATCH] Fix Name and ID cannot be both blank --- SpigotCore_14/src/de/steamwar/core/FlatteningWrapper14.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/SpigotCore_14/src/de/steamwar/core/FlatteningWrapper14.java b/SpigotCore_14/src/de/steamwar/core/FlatteningWrapper14.java index 31214ef..1844eba 100644 --- a/SpigotCore_14/src/de/steamwar/core/FlatteningWrapper14.java +++ b/SpigotCore_14/src/de/steamwar/core/FlatteningWrapper14.java @@ -289,7 +289,7 @@ public class FlatteningWrapper14 implements FlatteningWrapper.IFlatteningWrapper ItemStack head = new ItemStack(Material.PLAYER_HEAD, 1); SkullMeta headmeta = (SkullMeta) head.getItemMeta(); assert headmeta != null; - headmeta.setOwningPlayer(Bukkit.getOfflinePlayer(player)); + headmeta.setOwningPlayer(Bukkit.getOfflinePlayer(player.startsWith(".") ? player.substring(1) : player)); headmeta.setDisplayName(player); head.setItemMeta(headmeta); return head;