diff options
author | ementalo <ementalodev@gmx.co.uk> | 2012-06-18 11:25:51 +0100 |
---|---|---|
committer | ementalo <ementalodev@gmx.co.uk> | 2012-06-18 11:25:51 +0100 |
commit | 962d49517b77697c469ce9e900e2b3736bf18e57 (patch) | |
tree | c7411246b1aa8009019edd96adae524415b89c60 /EssentialsSigns | |
parent | 55455533451a166ef1d0d4445f9ccf2ab3076389 (diff) | |
download | Essentials-962d49517b77697c469ce9e900e2b3736bf18e57.tar Essentials-962d49517b77697c469ce9e900e2b3736bf18e57.tar.gz Essentials-962d49517b77697c469ce9e900e2b3736bf18e57.tar.lz Essentials-962d49517b77697c469ce9e900e2b3736bf18e57.tar.xz Essentials-962d49517b77697c469ce9e900e2b3736bf18e57.zip |
Missing event aborts in sign code.
Diffstat (limited to 'EssentialsSigns')
-rw-r--r-- | EssentialsSigns/src/com/earth2me/essentials/signs/SignBlockListener.java | 10 | ||||
-rw-r--r-- | EssentialsSigns/src/com/earth2me/essentials/signs/SignEntityListener.java | 5 |
2 files changed, 15 insertions, 0 deletions
diff --git a/EssentialsSigns/src/com/earth2me/essentials/signs/SignBlockListener.java b/EssentialsSigns/src/com/earth2me/essentials/signs/SignBlockListener.java index a2465c76d..80e603394 100644 --- a/EssentialsSigns/src/com/earth2me/essentials/signs/SignBlockListener.java +++ b/EssentialsSigns/src/com/earth2me/essentials/signs/SignBlockListener.java @@ -204,6 +204,11 @@ public class SignBlockListener implements Listener @EventHandler(priority = EventPriority.LOW) public void onBlockPistonExtend(final BlockPistonExtendEvent event) { + if (plugin.getSettings().areSignsDisabled()) + { + return; + } + for (Block block : event.getBlocks()) { if (((block.getTypeId() == WALL_SIGN @@ -229,6 +234,11 @@ public class SignBlockListener implements Listener @EventHandler(priority = EventPriority.LOW) public void onBlockPistonRetract(final BlockPistonRetractEvent event) { + if (plugin.getSettings().areSignsDisabled()) + { + return; + } + if (event.isSticky()) { final Block block = event.getBlock(); diff --git a/EssentialsSigns/src/com/earth2me/essentials/signs/SignEntityListener.java b/EssentialsSigns/src/com/earth2me/essentials/signs/SignEntityListener.java index 213b0e125..ac990cf32 100644 --- a/EssentialsSigns/src/com/earth2me/essentials/signs/SignEntityListener.java +++ b/EssentialsSigns/src/com/earth2me/essentials/signs/SignEntityListener.java @@ -24,6 +24,11 @@ public class SignEntityListener implements Listener @EventHandler(priority = EventPriority.LOW) public void onEntityExplode(final EntityExplodeEvent event) { + if (plugin.getSettings().areSignsDisabled()) + { + return; + } + for (Block block : event.blockList()) { if (((block.getTypeId() == Material.WALL_SIGN.getId() |