Package com.vk2gpz.autosell.object
Class SellerStats
java.lang.Object
com.vk2gpz.autosell.object.SellerStats
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 Summary
ConstructorsConstructorDescriptionSellerStats
(String playerName) Constructor to initialize the SellerStats object with the player's name. -
Method Summary
Modifier and TypeMethodDescriptionvoid
addItemSold
(String material, int amount, double cost, double multiplier) Adds an item sold by the player to the list of sold items.double
boolean
void
setHadMultiplier
(boolean hadMultiplier) void
setHighestMultiplier
(double highestMultiplier) void
setPlayerName
(String playerName)
-
Constructor Details
-
SellerStats
Constructor to initialize the SellerStats object with the player's name.- Parameters:
playerName
- The name of the player.
-
-
Method Details
-
getPlayerName
-
setPlayerName
-
addItemSold
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
-
hadMultiplier
public boolean hadMultiplier() -
setHadMultiplier
public void setHadMultiplier(boolean hadMultiplier) -
getHighestMultiplier
public double getHighestMultiplier() -
setHighestMultiplier
public void setHighestMultiplier(double highestMultiplier)
-