Class SellerStats

java.lang.Object
com.vk2gpz.autosell.object.SellerStats

public class SellerStats extends Object
Represents the statistics of a seller in the AutoSell plugin. It contains information about the player's name, items sold, whether they had a multiplier, and the highest multiplier achieved.
  • Constructor Details

    • SellerStats

      public SellerStats(String playerName)
      Constructor to initialize the SellerStats object with the player's name.
      Parameters:
      playerName - The name of the player.
  • Method Details

    • getPlayerName

      public String getPlayerName()
    • setPlayerName

      public void setPlayerName(String playerName)
    • addItemSold

      public void addItemSold(String material, int amount, double cost, double multiplier)
      Adds an item sold by the player to the list of sold items. If the item already exists in the list, it updates the amount sold and total sell amount.
      Parameters:
      material - The material type of the item sold.
      amount - The amount of the item sold.
      cost - The total sell amount for the item.
      multiplier - The multiplier applied to the sale.
    • getItemsSold

      public List<ItemSold> getItemsSold()
    • hadMultiplier

      public boolean hadMultiplier()
    • setHadMultiplier

      public void setHadMultiplier(boolean hadMultiplier)
    • getHighestMultiplier

      public double getHighestMultiplier()
    • setHighestMultiplier

      public void setHighestMultiplier(double highestMultiplier)