diff --git a/src/me/ryanhamshire/GriefPrevention/BlockEventHandler.java b/src/me/ryanhamshire/GriefPrevention/BlockEventHandler.java index f77be3d..9c57a2b 100644 --- a/src/me/ryanhamshire/GriefPrevention/BlockEventHandler.java +++ b/src/me/ryanhamshire/GriefPrevention/BlockEventHandler.java @@ -176,40 +176,7 @@ public class BlockEventHandler implements Listener { playerData.lastClaim = claim; - //FEATURE: prevent theft from container using a hopper when the container is at the very bottom of a land claim - - if(block.getType() == Material.HOPPER) - { - //is the above block inside the land claim? - Block aboveBlock = block.getRelative(BlockFace.UP); - if(claim.contains(aboveBlock.getLocation(), false, false)) - { - //then the player needs container trust to place the hopper - String failureMessage = claim.allowContainers(player); - if(failureMessage != null) - { - placeEvent.setCancelled(true); - GriefPrevention.sendMessage(player, TextMode.Err, failureMessage); - return; - } - } - } - - //rails can't be placed ANYWHERE under a claim, because they could be pushed up to the - //target container using pistons - if(block.getType().name().contains("RAIL")) - { - //then the player needs container trust to place the hopper - String failureMessage = claim.allowContainers(player); - if(failureMessage != null) - { - placeEvent.setCancelled(true); - GriefPrevention.sendMessage(player, TextMode.Err, failureMessage); - return; - } - } - - //warn about TNT not destroying claimed blocks + //warn about TNT not destroying claimed blocks if(block.getType() == Material.TNT && !claim.areExplosivesAllowed) { GriefPrevention.sendMessage(player, TextMode.Warn, Messages.NoTNTDamageClaims);