This is exactly what it describes – feeling pain when you ejaculate/come.
STIs are dealt with in more detail in the Infections section of this web site.
How can painful ejaculation be treated?
Whatever the cause of the inflammation, it needs to be investigated by a doctor so that proper treatment can be decided upon. This may be as simple as undertaking a course of antibiotics.
If you are having this problem, you should make an appointment with the Integrated Sexual Health Clinic (formerly Genito-urinary GUM) so that staff there can investigate why this is happening to you and help you.