From 56cef59c376e96f72e4c941fec563afc2fc1f229 Mon Sep 17 00:00:00 2001 From: Kiran Hart Date: Mon, 7 Aug 2023 18:49:19 -0400 Subject: [PATCH] =?UTF-8?q?=E2=9D=8C=20remove=20tick=20delay=20on=20listin?= =?UTF-8?q?g=20create?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Took 2 minutes --- .../java/ca/tweetzy/auctionhouse/commands/CommandSell.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main/java/ca/tweetzy/auctionhouse/commands/CommandSell.java b/src/main/java/ca/tweetzy/auctionhouse/commands/CommandSell.java index 92c1df4..cf3a7ee 100644 --- a/src/main/java/ca/tweetzy/auctionhouse/commands/CommandSell.java +++ b/src/main/java/ca/tweetzy/auctionhouse/commands/CommandSell.java @@ -378,9 +378,9 @@ public final class CommandSell extends AbstractCommand { }, Settings.INTERNAL_CREATE_DELAY.getInt()); })); } else { - Bukkit.getScheduler().runTaskLaterAsynchronously(AuctionHouse.getInstance(), () -> { +// Bukkit.getScheduler().runTaskLaterAsynchronously(AuctionHouse.getInstance(), () -> { if (auctionPlayer.getPlayer() == null || !auctionPlayer.getPlayer().isOnline()) { - return; + return ReturnType.FAILURE; } player.getInventory().setItemInHand(XMaterial.AIR.parseItem()); @@ -401,7 +401,7 @@ public final class CommandSell extends AbstractCommand { AuctionHouse.newChain().sync(player::closeInventory).execute(); }); - }, Settings.INTERNAL_CREATE_DELAY.getInt()); +// }, Settings.INTERNAL_CREATE_DELAY.getInt()); }