From 2a76f742b1e81ef5a2a34a423e69ffb3501ae680 Mon Sep 17 00:00:00 2001 From: Ectabro Date: Fri, 27 Dec 2019 16:45:39 +0100 Subject: [PATCH] Update ShopSuccessPurchaseEvent.java Former-commit-id: 8fc8c3d744944e0dd4fda0d784bb19c91bb24a6f --- .../maxgamer/quickshop/Event/ShopSuccessPurchaseEvent.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/main/java/org/maxgamer/quickshop/Event/ShopSuccessPurchaseEvent.java b/src/main/java/org/maxgamer/quickshop/Event/ShopSuccessPurchaseEvent.java index 561e6f045..73685e88d 100644 --- a/src/main/java/org/maxgamer/quickshop/Event/ShopSuccessPurchaseEvent.java +++ b/src/main/java/org/maxgamer/quickshop/Event/ShopSuccessPurchaseEvent.java @@ -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; }