To the guys who stopped their wanking addiction, how?

I (20m) have been jerking off constantly for years now and it's been a daily habit when I start or finish the day or when I'm bored, drunk, tired (I do it a lot basically). I've been trying to stop for a while now but I keep failing and jerking off again, how did you guys stop or what tricks did you use?