To alleviate your pain, you should know why your eyes hurt.
If the pain is caused of foreign bodies in your eyes, you need to flush your eyes with water thoroughly. If the foreign body is irritant chemical, you have to go to see a doctor.
What's more, you can take some over the counter painkillers to relieve your pain. For example, you can take ibuprofen or acetaminophen.
Also, you need to avoid overloading your eyes or exposure to bright light.
Lastly, enough rest is the profound solution and cool compress can be a pus.