Disabled Bat Blaster near Parkour.

Disabled Painting blocks near cactus.
This commit is contained in:
Jonathan Williams 2013-11-21 12:16:24 -08:00
parent be7ea65033
commit 44416001b3
2 changed files with 9 additions and 0 deletions

View File

@ -79,6 +79,12 @@ public class Halloween2013_BatGun extends ItemGadget
if (!IsActive(player))
return;
if (Manager.Manager.GetParkour().InParkour(player))
{
UtilPlayer.message(player, F.main("Parkour", "You cannot use Bat Blaster near Parkour Challenges."));
return;
}
if (!Recharge.Instance.use(player, GetName(), 8000, true))
return;

View File

@ -99,6 +99,9 @@ public class PaintballGun extends ItemGadget
{
if (block.getType() == Material.PORTAL)
return;
if (block.getType() == Material.CACTUS)
return;
}
for (Block block : UtilBlock.getInRadius(loc, 1.5d).keySet())