From 78005a46c7c55f491637bd30c6ff07b639c43b8f Mon Sep 17 00:00:00 2001 From: Ryder Belserion Date: Sun, 13 Oct 2024 17:06:01 -0400 Subject: [PATCH] remove update auction method --- .../crazyauctions/api/guis/types/CategoriesMenu.java | 3 --- .../badbones69/crazyauctions/api/guis/types/ExpiredMenu.java | 2 -- .../badbones69/crazyauctions/api/guis/types/other/BidMenu.java | 3 --- .../crazyauctions/api/guis/types/other/BuyingMenu.java | 3 --- 4 files changed, 11 deletions(-) diff --git a/paper/src/main/java/com/badbones69/crazyauctions/api/guis/types/CategoriesMenu.java b/paper/src/main/java/com/badbones69/crazyauctions/api/guis/types/CategoriesMenu.java index e7c9014..0e85608 100644 --- a/paper/src/main/java/com/badbones69/crazyauctions/api/guis/types/CategoriesMenu.java +++ b/paper/src/main/java/com/badbones69/crazyauctions/api/guis/types/CategoriesMenu.java @@ -1,6 +1,5 @@ package com.badbones69.crazyauctions.api.guis.types; -import com.badbones69.crazyauctions.Methods; import com.badbones69.crazyauctions.api.builders.ItemBuilder; import com.badbones69.crazyauctions.api.enums.Category; import com.badbones69.crazyauctions.api.enums.ShopType; @@ -37,8 +36,6 @@ public class CategoriesMenu extends Holder { @Override public final Holder build() { - Methods.updateAuction(); - this.options.addAll(List.of( "OtherSettings.Back", "OtherSettings.WhatIsThis.Categories", diff --git a/paper/src/main/java/com/badbones69/crazyauctions/api/guis/types/ExpiredMenu.java b/paper/src/main/java/com/badbones69/crazyauctions/api/guis/types/ExpiredMenu.java index 0afe149..53a5572 100644 --- a/paper/src/main/java/com/badbones69/crazyauctions/api/guis/types/ExpiredMenu.java +++ b/paper/src/main/java/com/badbones69/crazyauctions/api/guis/types/ExpiredMenu.java @@ -46,8 +46,6 @@ public class ExpiredMenu extends Holder { @Override public final Holder build() { - Methods.updateAuction(); - this.options.addAll(List.of( "Back", "PreviousPage", diff --git a/paper/src/main/java/com/badbones69/crazyauctions/api/guis/types/other/BidMenu.java b/paper/src/main/java/com/badbones69/crazyauctions/api/guis/types/other/BidMenu.java index 539deb7..e2b3cec 100644 --- a/paper/src/main/java/com/badbones69/crazyauctions/api/guis/types/other/BidMenu.java +++ b/paper/src/main/java/com/badbones69/crazyauctions/api/guis/types/other/BidMenu.java @@ -14,7 +14,6 @@ import com.badbones69.crazyauctions.currency.VaultSupport; import io.papermc.paper.persistence.PersistentDataContainerView; import org.bukkit.Material; import org.bukkit.NamespacedKey; -import org.bukkit.OfflinePlayer; import org.bukkit.configuration.file.FileConfiguration; import org.bukkit.entity.Player; import org.bukkit.event.inventory.InventoryClickEvent; @@ -46,8 +45,6 @@ public class BidMenu extends Holder { @Override public final Holder build() { - Methods.updateAuction(); - if (!this.data.contains("Items." + this.id)) { GuiManager.openShop(this.player, ShopType.BID, HolderManager.getShopCategory(this.player), 1); diff --git a/paper/src/main/java/com/badbones69/crazyauctions/api/guis/types/other/BuyingMenu.java b/paper/src/main/java/com/badbones69/crazyauctions/api/guis/types/other/BuyingMenu.java index 6529feb..9c974ef 100644 --- a/paper/src/main/java/com/badbones69/crazyauctions/api/guis/types/other/BuyingMenu.java +++ b/paper/src/main/java/com/badbones69/crazyauctions/api/guis/types/other/BuyingMenu.java @@ -12,7 +12,6 @@ import com.badbones69.crazyauctions.api.guis.HolderManager; import com.badbones69.crazyauctions.api.GuiManager; import com.badbones69.crazyauctions.currency.VaultSupport; import io.papermc.paper.persistence.PersistentDataContainerView; -import org.bukkit.OfflinePlayer; import org.bukkit.Sound; import org.bukkit.configuration.file.FileConfiguration; import org.bukkit.entity.Player; @@ -48,8 +47,6 @@ public class BuyingMenu extends Holder { @Override public final Holder build() { - Methods.updateAuction(); - if (!this.data.contains("Items." + this.id)) { GuiManager.openShop(this.player, ShopType.SELL, HolderManager.getShopCategory(this.player), 1);