diff --git a/Bukkit/src/main/java/com/plotsquared/bukkit/schematic/StateWrapper.java b/Bukkit/src/main/java/com/plotsquared/bukkit/schematic/StateWrapper.java index 6957ae0bc..be3a09178 100644 --- a/Bukkit/src/main/java/com/plotsquared/bukkit/schematic/StateWrapper.java +++ b/Bukkit/src/main/java/com/plotsquared/bukkit/schematic/StateWrapper.java @@ -243,8 +243,15 @@ public class StateWrapper { return true; } String player = skullOwner.getString("Name"); - skull.setOwningPlayer(Bukkit.getOfflinePlayer(player)); - skull.update(true); + if (player == null || player.isEmpty()) { + return false; + } + try { + skull.setOwningPlayer(Bukkit.getOfflinePlayer(player)); + skull.update(true); + } catch (Exception e) { + e.printStackTrace(); + } return true; } return false;