diff options
Diffstat (limited to 'src/main/java/org/bukkit/event/player/PlayerInventoryEvent.java')
-rw-r--r-- | src/main/java/org/bukkit/event/player/PlayerInventoryEvent.java | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/main/java/org/bukkit/event/player/PlayerInventoryEvent.java b/src/main/java/org/bukkit/event/player/PlayerInventoryEvent.java index b425fe22..5993e841 100644 --- a/src/main/java/org/bukkit/event/player/PlayerInventoryEvent.java +++ b/src/main/java/org/bukkit/event/player/PlayerInventoryEvent.java @@ -1,6 +1,7 @@ package org.bukkit.event.player; import org.bukkit.entity.Player; +import org.bukkit.event.HandlerList; import org.bukkit.inventory.Inventory; /** @@ -8,6 +9,7 @@ import org.bukkit.inventory.Inventory; */ @SuppressWarnings("serial") public class PlayerInventoryEvent extends PlayerEvent { + private static final HandlerList handlers = new HandlerList(); protected Inventory inventory; public PlayerInventoryEvent(final Player player, final Inventory inventory) { @@ -23,4 +25,13 @@ public class PlayerInventoryEvent extends PlayerEvent { public Inventory getInventory() { return inventory; } + + @Override + public HandlerList getHandlers() { + return handlers; + } + + public static HandlerList getHandlerList() { + return handlers; + } } |