diff options
author | Iaccidentally <coryhuckaby@gmail.com> | 2013-01-02 18:25:40 -0500 |
---|---|---|
committer | Iaccidentally <coryhuckaby@gmail.com> | 2013-01-02 18:25:40 -0500 |
commit | e032939f7c04b10103c41cf73570ce9b5c27b67b (patch) | |
tree | 74c469c944d07819ea5cb6153da3fc22143cdde9 /EssentialsAntiBuild/src/com/earth2me | |
parent | 374f7547e4cd12dd209b60ff3879434ff3a0a9c0 (diff) | |
download | Essentials-e032939f7c04b10103c41cf73570ce9b5c27b67b.tar Essentials-e032939f7c04b10103c41cf73570ce9b5c27b67b.tar.gz Essentials-e032939f7c04b10103c41cf73570ce9b5c27b67b.tar.lz Essentials-e032939f7c04b10103c41cf73570ce9b5c27b67b.tar.xz Essentials-e032939f7c04b10103c41cf73570ce9b5c27b67b.zip |
Update AntiBuild to use HangingBreakByEntityEvent instead of deprecated PaintingBreakByEntityEvent
Diffstat (limited to 'EssentialsAntiBuild/src/com/earth2me')
-rw-r--r-- | EssentialsAntiBuild/src/com/earth2me/essentials/antibuild/EssentialsAntiBuildListener.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/EssentialsAntiBuild/src/com/earth2me/essentials/antibuild/EssentialsAntiBuildListener.java b/EssentialsAntiBuild/src/com/earth2me/essentials/antibuild/EssentialsAntiBuildListener.java index 7e5c60476..76089505c 100644 --- a/EssentialsAntiBuild/src/com/earth2me/essentials/antibuild/EssentialsAntiBuildListener.java +++ b/EssentialsAntiBuild/src/com/earth2me/essentials/antibuild/EssentialsAntiBuildListener.java @@ -13,8 +13,8 @@ import org.bukkit.event.EventHandler; import org.bukkit.event.EventPriority; import org.bukkit.event.Listener; import org.bukkit.event.block.*; +import org.bukkit.event.hanging.HangingBreakByEntityEvent; import org.bukkit.event.inventory.CraftItemEvent; -import org.bukkit.event.painting.PaintingBreakByEntityEvent; import org.bukkit.event.player.PlayerDropItemEvent; import org.bukkit.event.player.PlayerInteractEvent; import org.bukkit.event.player.PlayerPickupItemEvent; @@ -145,7 +145,7 @@ public class EssentialsAntiBuildListener implements Listener } @EventHandler(priority = EventPriority.HIGHEST, ignoreCancelled = true) - public void onPaintingBreak(final PaintingBreakByEntityEvent event) + public void onHangingBreak(final HangingBreakByEntityEvent event) { final Entity entity = event.getRemover(); if (entity instanceof Player) |