diff options
author | ementalo <ementalodev@gmx.co.uk> | 2012-06-18 15:51:48 +0100 |
---|---|---|
committer | ementalo <ementalodev@gmx.co.uk> | 2012-06-18 15:51:48 +0100 |
commit | bfbec1c46c3ab2454ebda9b1a0adda4fbb8269d2 (patch) | |
tree | 48e592d0b010a87d34c2b94e641476642fcdf022 /EssentialsProtect/src/com/earth2me | |
parent | 89eca7d99158e59e9a6807492bdf219dc25c31a6 (diff) | |
download | Essentials-bfbec1c46c3ab2454ebda9b1a0adda4fbb8269d2.tar Essentials-bfbec1c46c3ab2454ebda9b1a0adda4fbb8269d2.tar.gz Essentials-bfbec1c46c3ab2454ebda9b1a0adda4fbb8269d2.tar.lz Essentials-bfbec1c46c3ab2454ebda9b1a0adda4fbb8269d2.tar.xz Essentials-bfbec1c46c3ab2454ebda9b1a0adda4fbb8269d2.zip |
Remove fake explosion.
Missing bits of commandr
Diffstat (limited to 'EssentialsProtect/src/com/earth2me')
-rw-r--r-- | EssentialsProtect/src/com/earth2me/essentials/protect/EssentialsProtectEntityListener.java | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/EssentialsProtect/src/com/earth2me/essentials/protect/EssentialsProtectEntityListener.java b/EssentialsProtect/src/com/earth2me/essentials/protect/EssentialsProtectEntityListener.java index 8cd0e271b..8a172f011 100644 --- a/EssentialsProtect/src/com/earth2me/essentials/protect/EssentialsProtectEntityListener.java +++ b/EssentialsProtect/src/com/earth2me/essentials/protect/EssentialsProtectEntityListener.java @@ -1,7 +1,6 @@ package com.earth2me.essentials.protect; import com.earth2me.essentials.api.IEssentials; -import com.earth2me.essentials.craftbukkit.FakeExplosion; import org.bukkit.Material; import org.bukkit.block.Block; import org.bukkit.block.BlockFace; @@ -9,9 +8,9 @@ import org.bukkit.entity.*; import org.bukkit.event.EventHandler; import org.bukkit.event.EventPriority; import org.bukkit.event.Listener; +import org.bukkit.event.entity.*; import org.bukkit.event.entity.EntityDamageEvent.DamageCause; import org.bukkit.event.entity.EntityTargetEvent.TargetReason; -import org.bukkit.event.entity.*; public class EssentialsProtectEntityListener implements Listener @@ -195,10 +194,9 @@ public class EssentialsProtectEntityListener implements Listener && (settings.getData().getPrevent().isCreeperExplosion() || settings.getData().getPrevent().isCreeperBlockdamage() || (maxHeight >= 0 && event.getLocation().getBlockY() > maxHeight))) - { - //Nicccccccccce plaaacccccccccce.. - FakeExplosion.createExplosion(event, ess.getServer(), ess.getServer().getOnlinePlayers()); + { event.setCancelled(true); + event.getLocation().getWorld().createExplosion(event.getLocation(), 0F); return; } else if (event.getEntity() instanceof TNTPrimed |