[ad_1]
Here there is an extra semicolon after the condition:
if (stack.getItem() == halo.TitaniumLeggings);
Remove it. Statement will be like this:
if (stack.getItem() == halo.TitaniumLeggings) { ... }
[ad_2]
solved Syntax error on token `else` [closed]