Famous cricketers turned out to play a charity game against Bishops Cannings Cricket Club on Sunday.

The predicted bad weather put paid to planned attendances by actors James and Oliver Phelps, who played the Weasley brothers in the Harry Potter films, and England One Day wicketkeeper Jos Buttler, but Merlin actor Rupert Young made it.

The celebrities gave their services for free to play for the Bunbury XI, who play charity matches all over the country, and this was the first time they had played Bishops Cannings.

The match was held to celebrate Bishops Cannings’ 25th anniversary and the official opening of their new pavilion at their ground in Coate.

After a sit-down lunch in the marquee, enjoyed by 350 people, the sides took to the field with Bunbury batting first.

Lining up for Bunbury were Somerset players Peter Trego and Steve Kirby plus Hampshire players Jimmy Adams, Liam Dawson (from Calne) and Matt Coles and actor Rupert Young, who played the knight Sir Leon in the TV series Merlin.

Because of the drizzle the match was shortened to a 20/20 over match and they didn’t have a tea break.

Bunbury batted first and scored 258 for six wickets. Top scorer was Peter Trego of Somerset with 78 but his wicket and that of Jimmy Adams was taken by David Sheppard, founding member of Bishops Cannings Cricket Club.

The 64-year-old only bowled two overs and was thrilled to capture the wickets of the two batsmen during his cameo role.

The Bishops Cannings side featured players who all came through the ranks of the club including the Alsop boys, Owen and Tom, who are at Hampshire’s academy, and younger brother Tristan. Their father Phil captained the side.

Owen Alsop was top scorer with 46 as Bishops Cannings were bowled out for 158.

Afterwards, the new pavilion was officially opened. It cost about £90,000 and has received funding from contributions by housing developers Viridor Landfill and Devizes Area Board.

Ed Davies, chairman of Bishops Cannings Cricket Club, said he understood why celebrities James and Oliver Phelps did not attend.

He said: “They were both up in Stratford-upon-Avon and because the weather forecast was so disastrous they decided not to drive down. On Sunday morning it didn’t look like we would be getting a game on because of the weather forecast. As a result of that we had fewer spectators turn up. We had about a maximum of 50, but it was a good match.”

Money raised from the match will go to Devizes Opportunity Centre, which helps pre-school children with special needs, and the English Schools Cricket Association.