Thanks for your query,based on the facts that you have posted it appears that you have undergone surgery for removal of spermatocele
last year and now getting pain in the same area.
Spermatocele has tendency to recur again after removal .Please consult the operating surgeon
for clinical examination and get ultrasound
scanning of the scrotum
done to rule out the same.
You need to take broad spectrum antibiotic like Cefexine along with anti inflammatory drug like Diclofenac
twice daily for 10 days .