diff --git a/src/main/java/org/maxgamer/quickshop/Event/ShopSuccessPurchaseEvent.java b/src/main/java/org/maxgamer/quickshop/Event/ShopSuccessPurchaseEvent.java index 1bf1cb241..f9288cc75 100644 --- a/src/main/java/org/maxgamer/quickshop/Event/ShopSuccessPurchaseEvent.java +++ b/src/main/java/org/maxgamer/quickshop/Event/ShopSuccessPurchaseEvent.java @@ -24,6 +24,7 @@ import org.bukkit.entity.Player; import org.bukkit.event.Cancellable; import org.jetbrains.annotations.NotNull; import org.maxgamer.quickshop.Shop.Shop; +import org.maxgamer.quickshop.Shop.ShopType; public class ShopSuccessPurchaseEvent extends QSEvent implements Cancellable { @@ -44,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; + + private ShopType type; /** * Builds a new shop purchase event @@ -55,12 +58,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, ShopType type) { this.shop = shop; this.player = player; this.amount = amount; this.tax = tax; this.total = total; + this.type = type; }