diff options
Diffstat (limited to 'src/main/java/org/bukkit/event/painting/PaintingPlaceEvent.java')
-rw-r--r-- | src/main/java/org/bukkit/event/painting/PaintingPlaceEvent.java | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/main/java/org/bukkit/event/painting/PaintingPlaceEvent.java b/src/main/java/org/bukkit/event/painting/PaintingPlaceEvent.java index 7e460c83..251bcee0 100644 --- a/src/main/java/org/bukkit/event/painting/PaintingPlaceEvent.java +++ b/src/main/java/org/bukkit/event/painting/PaintingPlaceEvent.java @@ -6,12 +6,14 @@ import org.bukkit.entity.Painting; import org.bukkit.entity.Player; import org.bukkit.event.Cancellable; import org.bukkit.event.Event; +import org.bukkit.event.HandlerList; /** * Triggered when a painting is created in the world */ @SuppressWarnings("serial") public class PaintingPlaceEvent extends PaintingEvent implements Cancellable { + private static final HandlerList handlers = new HandlerList(); private boolean cancelled; @@ -60,4 +62,13 @@ public class PaintingPlaceEvent extends PaintingEvent implements Cancellable { public void setCancelled(boolean cancel) { this.cancelled = cancel; } + + @Override + public HandlerList getHandlers() { + return handlers; + } + + public static HandlerList getHandlerList() { + return handlers; + } } |