mirror of
https://github.com/EarthMC/QuickShop-Reremake.git
synced 2026-11-25 01:49:49 -05:00
Update ShopSuccessPurchaseEvent.java
Former-commit-id: 0e2f935c7e2462bbb752d049c30fd4bfb969400c
This commit is contained in:
1 parent
c33550a7d1
commit
4bf0fc7f2a
1 file changed
+5
-1
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in new issue
Block a user