diff --git a/src/main/java/ca/tweetzy/auctionhouse/guis/GUISellItem.java b/src/main/java/ca/tweetzy/auctionhouse/guis/GUISellItem.java index 96387c5..97a8fcf 100644 --- a/src/main/java/ca/tweetzy/auctionhouse/guis/GUISellItem.java +++ b/src/main/java/ca/tweetzy/auctionhouse/guis/GUISellItem.java @@ -171,6 +171,8 @@ public class GUISellItem extends AbstractPlaceholderGui { reopen(e); }); + builder.onPlayerDiconnect(() -> PlayerUtils.giveItem(e.player, this.itemToBeListed)); + PlayerChatInput input = builder.build(); input.start(); }); @@ -201,6 +203,8 @@ public class GUISellItem extends AbstractPlaceholderGui { reopen(e); }); + builder.onPlayerDiconnect(() -> PlayerUtils.giveItem(e.player, this.itemToBeListed)); + PlayerChatInput input = builder.build(); input.start(); }); @@ -228,6 +232,8 @@ public class GUISellItem extends AbstractPlaceholderGui { reopen(e); }); + builder.onPlayerDiconnect(() -> PlayerUtils.giveItem(e.player, this.itemToBeListed)); + PlayerChatInput input = builder.build(); input.start(); }); @@ -254,6 +260,8 @@ public class GUISellItem extends AbstractPlaceholderGui { reopen(e); }); + builder.onPlayerDiconnect(() -> PlayerUtils.giveItem(e.player, this.itemToBeListed)); + PlayerChatInput input = builder.build(); input.start(); });