diff --git a/pom.xml b/pom.xml
index 0fe0001..200d373 100644
--- a/pom.xml
+++ b/pom.xml
@@ -8,7 +8,7 @@
ultrabackpacks-api
UltraBackpacks API
jar
- 1.1.1
+ 1.1.2
UltraBackpacksAPI-${project.version}
diff --git a/src/main/java/dev/drawethree/ultrabackpacks/api/event/BackpackSellEvent.java b/src/main/java/dev/drawethree/ultrabackpacks/api/event/BackpackSellEvent.java
new file mode 100644
index 0000000..502b4e7
--- /dev/null
+++ b/src/main/java/dev/drawethree/ultrabackpacks/api/event/BackpackSellEvent.java
@@ -0,0 +1,40 @@
+package dev.drawethree.ultrabackpacks.api.event;
+
+import org.bukkit.entity.Player;
+import org.bukkit.event.Event;
+import org.bukkit.event.HandlerList;
+
+public class BackpackSellEvent extends Event {
+
+ private static final HandlerList handlers = new HandlerList();
+
+ private final Player player;
+ private double moneyToDeposit;
+
+ /**
+ * Event fired when player sells the backpack.
+ * @param player Player
+ * @param moneyToDeposit original amount to deposit
+ */
+ public BackpackSellEvent(Player player, double moneyToDeposit) {
+ this.player = player;
+ this.moneyToDeposit = moneyToDeposit;
+ }
+
+ public static HandlerList getHandlerList() {
+ return handlers;
+ }
+
+ @Override
+ public HandlerList getHandlers() {
+ return handlers;
+ }
+
+ public void setMoneyToDeposit(double moneyToDeposit) {
+ this.moneyToDeposit = moneyToDeposit;
+ }
+
+ public Player getPlayer() {
+ return player;
+ }
+}