From 871953413c624b81b9ba61d6c1cadf6b4dc91834 Mon Sep 17 00:00:00 2001 From: Bukkit/Spigot Date: Mon, 4 Apr 2011 20:40:46 -0400 Subject: [PATCH] Fixed PlayerInventoryEvent Type. By: EvilSeph --- paper-api/src/main/java/org/bukkit/event/Event.java | 6 ++++++ .../java/org/bukkit/event/player/PlayerInventoryEvent.java | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/paper-api/src/main/java/org/bukkit/event/Event.java b/paper-api/src/main/java/org/bukkit/event/Event.java index 453f1514d1..c4dc0fc859 100644 --- a/paper-api/src/main/java/org/bukkit/event/Event.java +++ b/paper-api/src/main/java/org/bukkit/event/Event.java @@ -264,6 +264,12 @@ public abstract class Event implements Serializable { */ PLAYER_BUCKET_FILL(Category.PLAYER), + /** + * Called when a player interacts with the inventory + * + * @see org.bukkit.event.player.PlayerInventoryEvent + */ + PLAYER_INVENTORY(Category.PLAYER), /** * BLOCK EVENTS */ diff --git a/paper-api/src/main/java/org/bukkit/event/player/PlayerInventoryEvent.java b/paper-api/src/main/java/org/bukkit/event/player/PlayerInventoryEvent.java index 6ed865e524..f99bf9a2b8 100644 --- a/paper-api/src/main/java/org/bukkit/event/player/PlayerInventoryEvent.java +++ b/paper-api/src/main/java/org/bukkit/event/player/PlayerInventoryEvent.java @@ -11,7 +11,7 @@ public class PlayerInventoryEvent extends PlayerEvent { protected Inventory inventory; public PlayerInventoryEvent(final Player player, final Inventory inventory) { - super(Type.PLAYER_INTERACT, player); + super(Type.PLAYER_INVENTORY, player); this.inventory = inventory; }