public class WauzShopDiscount
extends java.lang.Object
WauzShopItem
Modifier and Type | Field and Description |
---|---|
private java.lang.String |
citizenName
The name of the citizen who owns the shop.
|
private double |
rankDiscount
The discount from the player rank.
|
private double |
relationDiscount
The discount from the relation to the shop owner.
|
private double |
totalDiscount
The total discount granted to the player.
|
Constructor and Description |
---|
WauzShopDiscount(org.bukkit.entity.Player player,
java.lang.String citizenName)
Creates a discount granted to a player for a certain shop.
|
Modifier and Type | Method and Description |
---|---|
org.bukkit.inventory.ItemStack |
generateDiscountDisplay()
Generates an item stack to show a list of all granted discounts.
|
java.lang.String |
getCitizenName() |
double |
getRankDiscount() |
double |
getRelationDiscount() |
double |
getTotalDiscount() |
private java.lang.String citizenName
private double relationDiscount
private double rankDiscount
private double totalDiscount
public WauzShopDiscount(org.bukkit.entity.Player player, java.lang.String citizenName)
player
- The player who wants to buy items in the shop.citizenName
- The name of the citizen who owns the shop. Can be null.public java.lang.String getCitizenName()
public double getRelationDiscount()
public double getRankDiscount()
public double getTotalDiscount()
public org.bukkit.inventory.ItemStack generateDiscountDisplay()