// Path: src/main/java/edu/self/startux/craftBay/event/AuctionBidEvent.java
// public class AuctionBidEvent extends AuctionEvent {
//         private static HandlerList handlers = new HandlerList();
//         private Merchant bidder, oldWinner;
//         private MoneyAmount amount, oldPrice;
// 
//         public AuctionBidEvent(Auction auction, Merchant bidder, MoneyAmount amount, Merchant oldWinner, MoneyAmount oldPrice) {
//                 super(auction);
//                 this.bidder = bidder;
//                 this.amount = amount;
//                 this.oldWinner = oldWinner;
//                 this.oldPrice = oldPrice;
//         }
// 
//         public static HandlerList getHandlerList() {
//                 return handlers;
//         }
// 
//         @Override
//         public HandlerList getHandlers() {
//                 return handlers;
//         }
// 
//         public Merchant getBidder() {
//                 return bidder;
//         }
// 
//         public MoneyAmount getAmount() {
//                 return amount;
//         }
// 
//         public Merchant getOldWinner() {
//                 return oldWinner;
//         }
// 
//         public MoneyAmount getOldPrice() {
//                 return oldPrice;
//         }
// }
// 
// Path: src/main/java/edu/self/startux/craftBay/event/AuctionStartEvent.java
// public class AuctionStartEvent extends AuctionEvent {
//         private static HandlerList handlers = new HandlerList();
// 
//         public AuctionStartEvent(Auction auction) {
//                 super(auction);
//         }
// 
//         public static HandlerList getHandlerList() {
//                 return handlers;
//         }
// 
//         @Override
//         public HandlerList getHandlers() {
//                 return handlers;
//         }
// }
// 
// Path: src/main/java/edu/self/startux/craftBay/event/AuctionTickEvent.java
// public class AuctionTickEvent extends AuctionEvent {
//         private static HandlerList handlers = new HandlerList();
// 
//         public AuctionTickEvent(Auction auction) {
//                 super(auction);
//         }
// 
//         public static HandlerList getHandlerList() {
//                 return handlers;
//         }
// 
//         @Override
//         public HandlerList getHandlers() {
//                 return handlers;
//         }
// }


import edu.self.startux.craftBay.event.AuctionBidEvent;
import edu.self.startux.craftBay.event.AuctionStartEvent;
import edu.self.startux.craftBay.event.AuctionTickEvent;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.LinkedList;
import java.util.List;
import java.util.ListIterator;
import java.util.Map;
import java.util.UUID;
        AuctionStartEvent event = new AuctionStartEvent(this);
        getPlugin().getServer().getPluginManager().callEvent(event);
    }

    @Override
    public int getTimeLeft() {
        return timeLeft;
    }

    @Override
    public void setTimeLeft(int time) {
        timeLeft = time;
    }

    @Override
    public MoneyAmount getStartingBid() {
        return new MoneyAmount(minbid);
    }

    @Override
    public void setStartingBid(MoneyAmount amount) {
        minbid = amount.getDouble();
    }

    @Override
    public void tick() {
        if (timeLeft <= 0) {
            end();
            return;
        }
// Path: src/main/java/edu/self/startux/craftBay/event/AuctionBidEvent.java
// public class AuctionBidEvent extends AuctionEvent {
//         private static HandlerList handlers = new HandlerList();
//         private Merchant bidder, oldWinner;
//         private MoneyAmount amount, oldPrice;
// 
//         public AuctionBidEvent(Auction auction, Merchant bidder, MoneyAmount amount, Merchant oldWinner, MoneyAmount oldPrice) {
//                 super(auction);
//                 this.bidder = bidder;
//                 this.amount = amount;
//                 this.oldWinner = oldWinner;
//                 this.oldPrice = oldPrice;
//         }
// 
//         public static HandlerList getHandlerList() {
//                 return handlers;
//         }
// 
//         @Override
//         public HandlerList getHandlers() {
//                 return handlers;
//         }
// 
//         public Merchant getBidder() {
//                 return bidder;
//         }
// 
//         public MoneyAmount getAmount() {
//                 return amount;
//         }
// 
//         public Merchant getOldWinner() {
//                 return oldWinner;
//         }
// 
//         public MoneyAmount getOldPrice() {
//                 return oldPrice;
//         }
// }
// 
// Path: src/main/java/edu/self/startux/craftBay/event/AuctionStartEvent.java
// public class AuctionStartEvent extends AuctionEvent {
//         private static HandlerList handlers = new HandlerList();
// 
//         public AuctionStartEvent(Auction auction) {
//                 super(auction);
//         }
// 
//         public static HandlerList getHandlerList() {
//                 return handlers;
//         }
// 
//         @Override
//         public HandlerList getHandlers() {
//                 return handlers;
//         }
// }
// 
// Path: src/main/java/edu/self/startux/craftBay/event/AuctionTickEvent.java
// public class AuctionTickEvent extends AuctionEvent {
//         private static HandlerList handlers = new HandlerList();
// 
//         public AuctionTickEvent(Auction auction) {
//                 super(auction);
//         }
// 
//         public static HandlerList getHandlerList() {
//                 return handlers;
//         }
// 
//         @Override
//         public HandlerList getHandlers() {
//                 return handlers;
//         }
// }


// Path: src/main/java/edu/self/startux/craftBay/TimedAuction.java
import edu.self.startux.craftBay.event.AuctionBidEvent;
import edu.self.startux.craftBay.event.AuctionStartEvent;
import edu.self.startux.craftBay.event.AuctionTickEvent;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.LinkedList;
import java.util.List;
import java.util.ListIterator;
import java.util.Map;
import java.util.UUID;

        AuctionStartEvent event = new AuctionStartEvent(this);
        getPlugin().getServer().getPluginManager().callEvent(event);
    }

    @Override
    public int getTimeLeft() {
        return timeLeft;
    }

    @Override
    public void setTimeLeft(int time) {
        timeLeft = time;
    }

    @Override
    public MoneyAmount getStartingBid() {
        return new MoneyAmount(minbid);
    }

    @Override
    public void setStartingBid(MoneyAmount amount) {
        minbid = amount.getDouble();
    }

    @Override
    public void tick() {
        if (timeLeft <= 0) {
            end();
            return;
        }
        getPlugin().getServer().getPluginManager().callEvent(new AuctionTickEvent(this));