diff options
author | KHobbits <rob@khobbits.co.uk> | 2012-06-10 19:40:09 +0100 |
---|---|---|
committer | KHobbits <rob@khobbits.co.uk> | 2012-06-10 19:40:09 +0100 |
commit | dd7f1bcf253c77d95567f20361102a12b2353bfe (patch) | |
tree | 29e550a722997e1af3347b09fb3447c4d623bf48 | |
parent | 3b855255cfa3fb919929c2d6de0041fcf9e5fd72 (diff) | |
download | Essentials-dd7f1bcf253c77d95567f20361102a12b2353bfe.tar Essentials-dd7f1bcf253c77d95567f20361102a12b2353bfe.tar.gz Essentials-dd7f1bcf253c77d95567f20361102a12b2353bfe.tar.lz Essentials-dd7f1bcf253c77d95567f20361102a12b2353bfe.tar.xz Essentials-dd7f1bcf253c77d95567f20361102a12b2353bfe.zip |
Missing event aborts in sign code.
-rw-r--r-- | Essentials/src/com/earth2me/essentials/signs/SignBlockListener.java | 10 | ||||
-rw-r--r-- | Essentials/src/com/earth2me/essentials/signs/SignEntityListener.java | 5 |
2 files changed, 15 insertions, 0 deletions
diff --git a/Essentials/src/com/earth2me/essentials/signs/SignBlockListener.java b/Essentials/src/com/earth2me/essentials/signs/SignBlockListener.java index ccd40b214..c159510c7 100644 --- a/Essentials/src/com/earth2me/essentials/signs/SignBlockListener.java +++ b/Essentials/src/com/earth2me/essentials/signs/SignBlockListener.java @@ -199,6 +199,11 @@ public class SignBlockListener implements Listener @EventHandler(priority = EventPriority.LOW) public void onBlockPistonExtend(final BlockPistonExtendEvent event) { + if (ess.getSettings().areSignsDisabled()) + { + return; + } + for (Block block : event.getBlocks()) { if (((block.getTypeId() == WALL_SIGN @@ -224,6 +229,11 @@ public class SignBlockListener implements Listener @EventHandler(priority = EventPriority.LOW) public void onBlockPistonRetract(final BlockPistonRetractEvent event) { + if (ess.getSettings().areSignsDisabled()) + { + return; + } + if (event.isSticky()) { final Block block = event.getBlock(); diff --git a/Essentials/src/com/earth2me/essentials/signs/SignEntityListener.java b/Essentials/src/com/earth2me/essentials/signs/SignEntityListener.java index 5a6ee177d..edc5b856d 100644 --- a/Essentials/src/com/earth2me/essentials/signs/SignEntityListener.java +++ b/Essentials/src/com/earth2me/essentials/signs/SignEntityListener.java @@ -22,6 +22,11 @@ public class SignEntityListener implements Listener @EventHandler(priority = EventPriority.LOW) public void onEntityExplode(final EntityExplodeEvent event) { + if (ess.getSettings().areSignsDisabled()) + { + return; + } + for (Block block : event.blockList()) { if (((block.getTypeId() == Material.WALL_SIGN.getId() |