From 3bf3eba005e209ac3fb4c6981738c7633ed63b1a Mon Sep 17 00:00:00 2001 From: Ben Date: Thu, 14 Apr 2016 12:08:54 +0100 Subject: [PATCH] Completely cancel the explosion falling block for claimed territories. --- .../src/mineplex/game/clans/clans/siege/weapon/Cannon.java | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Plugins/Mineplex.Game.Clans/src/mineplex/game/clans/clans/siege/weapon/Cannon.java b/Plugins/Mineplex.Game.Clans/src/mineplex/game/clans/clans/siege/weapon/Cannon.java index aa0597229..72df057eb 100644 --- a/Plugins/Mineplex.Game.Clans/src/mineplex/game/clans/clans/siege/weapon/Cannon.java +++ b/Plugins/Mineplex.Game.Clans/src/mineplex/game/clans/clans/siege/weapon/Cannon.java @@ -443,6 +443,12 @@ public class Cannon extends SiegeWeapon while (blocks.size() < 10 && (attempts < 30)) { Block block = UtilAlg.getRandomLocation(event.getProjectile().getLocation(), (4 * getPowerLevel())).getBlock(); + + if (_siegeManager.getClansManager().getClanUtility().getClaim(block.getLocation()) != null && !_siegeManager.getClansManager().getBlacklist().allowed(_siegeManager.getClansManager().getClanUtility().getClaim(block.getLocation()).Owner)) + { + continue; + } + if ((block.getType() != Material.AIR) && (!blocks.contains(block))) { blocks.add(block);