diff --git a/src/main/java/xyz/etztech/qol/listeners/JoinListener.java b/src/main/java/xyz/etztech/qol/listeners/JoinListener.java index 104af5f..8fccdcf 100644 --- a/src/main/java/xyz/etztech/qol/listeners/JoinListener.java +++ b/src/main/java/xyz/etztech/qol/listeners/JoinListener.java @@ -82,7 +82,8 @@ public class JoinListener implements Listener { boolean donorFound = false; for (TradeOffer tradeOffer: donorHeadShop.getOffers()) { - if (tradeOffer.getResultItem().getItemMeta().getDisplayName().equals(player.getDisplayName())) { + SkullMeta itemOfferMeta = (SkullMeta)tradeOffer.getResultItem().getItemMeta(); + if (itemOfferMeta.getOwningPlayer().getUniqueId() == player.getUniqueId()) { donorFound = true; break; }