Pain medicine

What is a good pain reliever for periods, I’ve been using plain ibeprophen and it’s not helping me anymore, I was going to buy the liquid gel cap ones and see if those help, any other suggestions?