So i plan on doing a text based adventure game in java. And right now iam planning my game. I came up with different types of player (exp. attacker, defender. etc) weapons, potions (health potions, damaging potions etc) and armor. 

Since I am fairly new to Java I clueless right now. The only thing that comes to my mind is a big if statement but I think that's not a smart solution, and there must be a different way to solve this. 

I can't provide any code right now because I didn't start to code but what I would like to know is: How to make and save player infos like levels and items for the next attack without doing a lot of if statements. You can also give me some keywords and I will research it that's no problem!