@Override
public void onEntityCombust(EntityCombustEvent event)
{
if (!event.isCancelled())
{
Entity e = event.getEntity();
EpicZone zone = General.GetZoneForPlayer(null, e.getLocation().getWorld().getName(), e.getLocation().getBlockY(), new Point(e.getLocation().getBlockX(), e.getLocation().getBlockZ()));
if (zone != null)
{
if (!zone.getFire().getIgnite())
{
if (isPlayer(e))
{
e.setFireTicks(0);
event.setCancelled(true);
}
else if (!zone.getFireBurnsMobs())
{
e.setFireTicks(0);
event.setCancelled(true);
}
}
}
}