A Burnley man has been sentenced after he was found to be in possession of an imitation firearm.