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 | 0258abee29bfcb9c44d79251f38a43693ed37ef5 (patch) | |
tree | 0c29513f83b8dd942ce84d3b365821bb02313853 /EssentialsAntiBuild/src/com/earth2me | |
parent | 9b8991788ba2fb24be8a2665fc4401e418f8d7cf (diff) | |
download | Essentials-0258abee29bfcb9c44d79251f38a43693ed37ef5.tar Essentials-0258abee29bfcb9c44d79251f38a43693ed37ef5.tar.gz Essentials-0258abee29bfcb9c44d79251f38a43693ed37ef5.tar.lz Essentials-0258abee29bfcb9c44d79251f38a43693ed37ef5.tar.xz Essentials-0258abee29bfcb9c44d79251f38a43693ed37ef5.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) |