Update ShopSuccessPurchaseEvent.java

Former-commit-id: 8fc8c3d744944e0dd4fda0d784bb19c91bb24a6f
This commit is contained in:
Ectabro authored and GitHub committed 2019-12-27 16:45:39 +01:00
1 parent 56668ae97d
commit 2a76f742b1
1 file changed
+4 -1
@@ -45,6 +45,8 @@ public class ShopSuccessPurchaseEvent extends QSEvent implements Cancellable {
private final double total; //Don't use getter, we have important notice need told dev in javadoc.
private boolean cancelled;
public ShopType type;
/**
@@ -57,12 +59,13 @@ public class ShopSuccessPurchaseEvent extends QSEvent implements Cancellable {
* @param tax The tax in this purchase
* @param total The money in this purchase
*/
public ShopSuccessPurchaseEvent(@NotNull Shop shop, @NotNull Player player, int amount, double total, double tax) {
public ShopSuccessPurchaseEvent(@NotNull Shop shop, @NotNull Player player, int amount, double total, double tax, @NotNull ShopType type) {
this.shop = shop;
this.player = player;
this.amount = amount;
this.tax = tax;
this.total = total;
this.type = type;
}