Disabled Bat Blaster near Parkour.
Disabled Painting blocks near cactus.
This commit is contained in:
parent
be7ea65033
commit
44416001b3
@ -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;
|
||||
|
||||
|
@ -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())
|
||||
|
Loading…
Reference in New Issue
Block a user