A man who told Gardaí he lost over half of the €17,000 he stole in a pub burglary has received a three-year prison sentence.