Both men, of St Budeaux, Cornwall, appeared at Truro Crown Court.
Withey was sentenced for two counts of burglary and two drugs possession offences when he was found with cannabis and diazepam.
Warren was dealt with for burglary, aggravated burglary and possession of a prohibited weapon (the stun gun).
Prosecuting barrister Julia Cox said the pair gained access to the Forder Community and Conservation Association Hall and carried out a full search for anything worth stealing.
They then made their way to the guildhall transporting the items already stolen in a wheelbarrow.
Withey was given a 12-month prison sentence suspended for two years and Warren was sentenced to four years in prison, reflecting the charge relating to the stun gun.
Withey must also complete a 15-day rehabilitation activity requirement and abide by a three-month 7pm to 7am curfew.