diff options
author | snowleo <schneeleo@gmail.com> | 2011-07-16 17:04:25 +0200 |
---|---|---|
committer | snowleo <schneeleo@gmail.com> | 2011-07-16 17:04:25 +0200 |
commit | 48230f615d0d3a6f3d98d03960ccf71c337f914a (patch) | |
tree | ccaedabafacacb1e757653a3f31343e0a589acca /EssentialsProtect/src/com/earth2me/essentials/protect/EssentialsProtectBlockListener.java | |
parent | 088f50ce8ae6d3b75392526cff929c3c8aed928a (diff) | |
download | Essentials-48230f615d0d3a6f3d98d03960ccf71c337f914a.tar Essentials-48230f615d0d3a6f3d98d03960ccf71c337f914a.tar.gz Essentials-48230f615d0d3a6f3d98d03960ccf71c337f914a.tar.lz Essentials-48230f615d0d3a6f3d98d03960ccf71c337f914a.tar.xz Essentials-48230f615d0d3a6f3d98d03960ccf71c337f914a.zip |
Fixes to EssentialsProtect that will remove conflicts with WorldGuard and other protection plugins.
Diffstat (limited to 'EssentialsProtect/src/com/earth2me/essentials/protect/EssentialsProtectBlockListener.java')
-rw-r--r-- | EssentialsProtect/src/com/earth2me/essentials/protect/EssentialsProtectBlockListener.java | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/EssentialsProtect/src/com/earth2me/essentials/protect/EssentialsProtectBlockListener.java b/EssentialsProtect/src/com/earth2me/essentials/protect/EssentialsProtectBlockListener.java index 8bc26f67e..1b9736a5a 100644 --- a/EssentialsProtect/src/com/earth2me/essentials/protect/EssentialsProtectBlockListener.java +++ b/EssentialsProtect/src/com/earth2me/essentials/protect/EssentialsProtectBlockListener.java @@ -97,6 +97,10 @@ public class EssentialsProtectBlockListener extends BlockListener @Override public void onBlockIgnite(BlockIgniteEvent event) { + if (event.isCancelled()) + { + return; + } Block block = event.getBlock(); if (block.getType() == Material.RAILS && prot.getSettingBool(ProtectConfig.protect_rails)) @@ -185,6 +189,10 @@ public class EssentialsProtectBlockListener extends BlockListener @Override public void onBlockBurn(final BlockBurnEvent event) { + if (event.isCancelled()) + { + return; + } final Block block = event.getBlock(); if (block.getType() == Material.RAILS && prot.getSettingBool(ProtectConfig.protect_rails)) { |