Auction Fixes + Auction API Hookup

This commit is contained in:
Kam committed 2026-01-24 15:11:50 -05:00
1 parent 64c29377c4
commit 3577701edf
29 files changed
+1897 -1013

No files matched your search

@@ -31,6 +31,7 @@ public class ContainerAuctionTrades extends ContainerAuction {
private List<AuctionListing> activeBids = new ArrayList<>();
private List<AuctionClaim> claims = new ArrayList<>();
private int hiddenSlot = -1;
private int maxTradeSlots = 8; // Player's max trade slots (permission-aware, synced from server)
// Slot type tracking for proper accessor methods
private int[] slotTypes = new int[SLOT_COUNT]; // 0=empty, 1=selling, 2=bidding, 3=claim
@@ -72,6 +73,11 @@ public class ContainerAuctionTrades extends ContainerAuction {
// Clear existing data
clearData();
// Read player's max trade slots (permission-aware)
if (compound.hasKey("MaxTradeSlots")) {
maxTradeSlots = compound.getInteger("MaxTradeSlots");
}
List<AuctionListing> newListings = new ArrayList<>();
List<AuctionListing> newBids = new ArrayList<>();
List<AuctionClaim> newClaims = new ArrayList<>();
@@ -341,4 +347,7 @@ public class ContainerAuctionTrades extends ContainerAuction {
}
public int getHiddenSlot() { return hiddenSlot; }
/** Get player's max trade slots (synced from server based on permissions) */
public int getMaxTradeSlots() { return maxTradeSlots; }
}